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