import type { AriaRole, JSXElementConstructor, ReactNode } from "react"; export interface VisuallyHiddenProps { /** The content to visually hide. */ children?: ReactNode; id?: string; role?: AriaRole; className?: string; /** * The element type for the container. Defaults to 'div' */ elementType?: string | JSXElementConstructor; } export function VisuallyHidden(props: VisuallyHiddenProps) { const { className, children, elementType: Component = "div", ...otherProps } = props; return ( {children} ); }