diff --git a/packages/builder/src/components/design/AppPreview/componentStructure.json b/packages/builder/src/components/design/AppPreview/componentStructure.json index 87bef3d3a1..bae4b009e9 100644 --- a/packages/builder/src/components/design/AppPreview/componentStructure.json +++ b/packages/builder/src/components/design/AppPreview/componentStructure.json @@ -49,6 +49,7 @@ "heading", "text", "image", + "backgroundimage", "link", "icon", "embed" diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index cb321f1bb9..73b6e72377 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -294,6 +294,19 @@ } ] }, + "backgroundimage": { + "name": "Background Image", + "description": "A background image", + "icon": "ri-image-line", + "styleable": true, + "settings": [ + { + "type": "text", + "label": "URL", + "key": "url" + } + ] + }, "icon": { "name": "Icon", "description": "A basic component for displaying icons", @@ -394,6 +407,11 @@ "type": "boolean", "label": "New Tab", "key": "openInNewTab" + }, + { + "type": "boolean", + "label": "External", + "key": "external" } ] }, diff --git a/packages/standard-components/src/BackgroundImage.svelte b/packages/standard-components/src/BackgroundImage.svelte new file mode 100644 index 0000000000..332ae11049 --- /dev/null +++ b/packages/standard-components/src/BackgroundImage.svelte @@ -0,0 +1,28 @@ + + +