Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Added cite tag to Text component as well as cite prop in initial props to Blockquote component (#2119)

Oleg Isonenfabb1341b3f9
diff --git a/packages/sdk-components-react/src/__generated__/text.props.ts b/packages/sdk-components-react/src/__generated__/text.props.ts
index 41539337b0..7d7da73296 100644
--- a/packages/sdk-components-react/src/__generated__/text.props.ts
+++ b/packages/sdk-components-react/src/__generated__/text.props.ts
@@ -452,10 +452,10 @@ export const props: Record<string, PropMeta> = {
tabIndex: { required: false, control: "number", type: "number" },
tag: {
required: false,
- control: "radio",
+ control: "select",
type: "string",
defaultValue: "div",
- options: ["div", "figcaption", "span"],
+ options: ["div", "cite", "figcaption", "span"],
},
title: { required: false, control: "text", type: "string" },
translate: {
diff --git a/packages/sdk-components-react/src/blockquote.ws.tsx b/packages/sdk-components-react/src/blockquote.ws.tsx
index bd62b7b8aa..f49b930c96 100644
--- a/packages/sdk-components-react/src/blockquote.ws.tsx
+++ b/packages/sdk-components-react/src/blockquote.ws.tsx
@@ -78,5 +78,5 @@ export const meta: WsComponentMeta = {
export const propsMeta: WsComponentPropsMeta = {
props,
- initialProps: ["id"],
+ initialProps: ["id", "cite"],
};
diff --git a/packages/sdk-components-react/src/text.tsx b/packages/sdk-components-react/src/text.tsx
index 1609b4fa0a..2d648e4b12 100644
--- a/packages/sdk-components-react/src/text.tsx
+++ b/packages/sdk-components-react/src/text.tsx
@@ -9,7 +9,7 @@ export const defaultTag = "div";
// We don't want to enable all tags because Box is usually a container and we have specific components for many tags.
type Props = ComponentProps<typeof defaultTag> & {
- tag?: "div" | "span" | "figcaption";
+ tag?: "div" | "span" | "figcaption" | "cite";
};
export const Text = forwardRef<ElementRef<typeof defaultTag>, Props>(