mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 22:31:33 +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
301 B
TypeScript
11 lines
301 B
TypeScript
import { forwardRef, type ElementRef, type ComponentProps } from "react";
|
|
|
|
export const defaultTag = "sup";
|
|
|
|
export const Superscript = forwardRef<
|
|
ElementRef<typeof defaultTag>,
|
|
ComponentProps<typeof defaultTag>
|
|
>((props, ref) => <sup {...props} ref={ref} />);
|
|
|
|
Superscript.displayName = "Bold";
|