import type { ReactNode } from "react"; interface VisuallyHiddenProps { children: ReactNode; /** When true, renders as a span inline; defaults to span */ as?: "span" | "div" | "p"; } /** * Visually hides content while keeping it accessible to screen readers. * Use for icon-only buttons, supplemental context, etc. */ export function VisuallyHidden({ children, as: Tag = "span" }: VisuallyHiddenProps) { return ( {children} ); }