import {forwardRef, type PropsWithChildren, type ForwardedRef} from 'react'; import type { Text as TextElement, TextProperties, } from '@watching/clips/elements'; import {useCustomElementProperties} from './shared.ts'; export interface TextProps extends PropsWithChildren, 'emphasis'>> { ref?: ForwardedRef; emphasis?: TextProperties['emphasis'] | boolean; } declare module 'react' { namespace JSX { interface IntrinsicElements { 'ui-text': TextProps; } } } export const Text = forwardRef( function Text(props, ref) { const wrapperRef = useCustomElementProperties(props, ref); return ; }, );