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.

283 B
Raw Blame
/** Builds persisted IDs only for exported Radix component names. */
type RadixComponentName = keyof typeof import("../components");

export const getRadixComponentId = <Name extends RadixComponentName>(
  name: Name
) => `@webstudio-is/sdk-components-react-radix:${name}` as const;