{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "visually-hidden",
  "type": "registry:ui",
  "title": "Visually Hidden",
  "description": "Keeps its content out of sight and still read by screen readers.",
  "categories": [
    "ui"
  ],
  "dependencies": [
    "radix-ui"
  ],
  "registryDependencies": [
    "@rivier-ui/theme"
  ],
  "files": [
    {
      "path": "registry/ui/visually-hidden.tsx",
      "type": "registry:ui",
      "target": "components/ui/visually-hidden.tsx",
      "content": "/**\n * @name visually-hidden\n * @category ui\n * @description Keeps its content out of sight and still read by screen readers.\n * @when Words that sighted people get from the layout and others need said: a heading for a region, the unit after a figure, the table behind a chart. Use asChild to hide an element of your own. On a single element the `sr-only` utility does the same; never use it to hide content from everyone, which is `hidden`.\n * @example\n * <VisuallyHidden>Opens in a new tab</VisuallyHidden>\n * <VisuallyHidden asChild><h2>Search results</h2></VisuallyHidden>\n */\nimport { VisuallyHidden as VisuallyHiddenPrimitive } from \"radix-ui\";\nimport type { ComponentProps } from \"react\";\n\nexport function VisuallyHidden(props: ComponentProps<typeof VisuallyHiddenPrimitive.Root>) {\n  return <VisuallyHiddenPrimitive.Root data-slot=\"visually-hidden\" {...props} />;\n}\n"
    }
  ],
  "meta": {
    "category": "ui",
    "when": "Words that sighted people get from the layout and others need said: a heading for a region, the unit after a figure, the table behind a chart. Use asChild to hide an element of your own. On a single element the `sr-only` utility does the same; never use it to hide content from everyone, which is `hidden`.",
    "example": "<VisuallyHidden>Opens in a new tab</VisuallyHidden>\n<VisuallyHidden asChild><h2>Search results</h2></VisuallyHidden>",
    "client": false
  }
}
