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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import type { PropMeta } from "@webstudio-is/sdk";
export const propsAccordion: Record<string, PropMeta> = {
collapsible: {
description:
"Whether an accordion item can be collapsed after it has been opened.",
required: false,
control: "boolean",
type: "boolean",
defaultValue: false,
},
defaultValue: {
description:
"The value of the item whose content is expanded when the accordion is initially rendered. Use\n`defaultValue` if you do not need to control the state of an accordion.",
required: false,
control: "text",
type: "string",
},
dir: {
description: "The language read direction.",
required: false,
control: "radio",
type: "string",
options: ["ltr", "rtl"],
},
disabled: {
description:
"Whether or not an accordion is disabled from user interaction.\n@defaultValue false",
required: false,
control: "boolean",
type: "boolean",
},
orientation: {
description: "The layout in which the Accordion operates.",
required: false,
control: "radio",
type: "string",
defaultValue: "vertical",
options: ["horizontal", "vertical"],
},
value: {
description:
"The controlled stateful value of the accordion item whose content is expanded.",
required: false,
control: "text",
type: "string",
},
};
export const propsAccordionItem: Record<string, PropMeta> = {
disabled: {
description:
"Whether or not an accordion item is disabled from user interaction.\n@defaultValue false",
required: false,
control: "boolean",
type: "boolean",
},
value: {
required: false,
control: "text",
type: "string",
description: "Current value of the element",
},
};
export const propsAccordionHeader: Record<string, PropMeta> = {};
export const propsAccordionTrigger: Record<string, PropMeta> = {};
export const propsAccordionContent: Record<string, PropMeta> = {
forceMount: {
required: false,
control: "boolean",
type: "boolean",
description:
"When true, closed content stays mounted. Keep an explicit closed-state CSS rule such as height: 0; Radix's animation-only example assumes unmounted content. Radix suppresses CSS transitions and animations while measuring height, so the first open may not animate.",
},
};