import type { PropsWithChildren, Ref } from "react"; import { memo } from "react"; // Inspired by // https://github.com/radix-ui/primitives/blob/main/packages/react/visually-hidden/src/VisuallyHidden.tsx export interface VisuallyHiddenProps extends PropsWithChildren { ref?: Ref; } export default memo(function VisuallyHidden({ ref, children, }: VisuallyHiddenProps) { return ( {children} ); });