mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
Ref https://github.com/webstudio-is/webstudio-builder/issues/1129 Splitted base components into separate package. Exposed 3 entry points - @webstudio-is/sdk-components-react - @webstudio-is/sdk-components-react/metas - @webstudio-is/sdk-components-react/props
11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import { forwardRef, type ElementRef, type ComponentProps } from "react";
|
|
|
|
export const defaultTag = "sub";
|
|
|
|
export const Subscript = forwardRef<
|
|
ElementRef<typeof defaultTag>,
|
|
ComponentProps<typeof defaultTag>
|
|
>((props, ref) => <sub {...props} ref={ref} />);
|
|
|
|
Subscript.displayName = "Subscript";
|