diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 571091b535..81b73d3204 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -427,6 +427,36 @@ export default { ], }, }, + { + _component: "@budibase/standard-components/cardstat", + name: "Stat", + description: "A card component for displaying numbers.", + icon: "ri-dual-sim-2-line", + children: [], + properties: { + design: { ...all }, + settings: [ + { + label: "Title", + key: "title", + control: Input, + placeholder: "Total Revenue", + }, + { + label: "Value", + key: "value", + control: Input, + placeholder: "$1,981,983", + }, + { + label: "Label", + key: "label", + control: Input, + placeholder: "Stripe", + }, + ], + }, + }, ], }, { diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index d1376384d8..7504c15b40 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -257,6 +257,14 @@ } } }, + "cardstat": { + "name": "Stat Card", + "props": { + "title": "string", + "value": "string", + "label": "string" + } + }, "cardhorizontal": { "name": "Horizontal Card", "props": { diff --git a/packages/standard-components/src/CardStat.svelte b/packages/standard-components/src/CardStat.svelte new file mode 100644 index 0000000000..e5e40ad862 --- /dev/null +++ b/packages/standard-components/src/CardStat.svelte @@ -0,0 +1,49 @@ + + +
{title}
+{label}
+