import {forwardRef, type PropsWithChildren, type ForwardedRef} from 'react'; import type { Heading as HeadingElement, HeadingProperties, } from '@watching/clips/elements'; import {useCustomElementProperties} from './shared.ts'; export interface HeadingProps extends PropsWithChildren, 'level'>> { ref?: ForwardedRef; level?: | HeadingProperties['level'] | `${NonNullable}` | 'auto'; } declare module 'react' { namespace JSX { interface IntrinsicElements { 'ui-heading': HeadingProps; } } } export const Heading = forwardRef( function Heading(props, ref) { const wrapperRef = useCustomElementProperties(props, ref); return ; }, );