{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "scrim",
  "title": "Scrim",
  "description": "Flat full-bleed overlay that dims the surface behind a panel, sheet or pane.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/scrim/scrim.tsx",
      "content": "import * as React from \"react\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@vllnt/ui\";\n\nconst scrimVariants = cva(\"absolute inset-0\", {\n  defaultVariants: {\n    level: \"dim\",\n  },\n  variants: {\n    level: {\n      dim: \"bg-black/50\",\n      strong: \"bg-black/80\",\n    },\n  },\n});\n\n/** Opacity level of a {@link Scrim}: `dim` is a light veil, `strong` hides what is behind it. */\nexport type ScrimLevel = NonNullable<\n  VariantProps<typeof scrimVariants>[\"level\"]\n>;\n\n/** Props for {@link Scrim}. */\nexport type ScrimProps = React.ComponentPropsWithoutRef<\"div\"> & {\n  /** Opacity level of the black overlay, the same in every theme mode. Defaults to `\"dim\"`. */\n  level?: ScrimLevel;\n};\n\n/**\n * Flat full-bleed overlay that dims the surface behind a panel, sheet or pane.\n * Decorative: screen readers skip it. It fills its nearest positioned\n * ancestor; pass `className=\"fixed\"` to cover the viewport.\n *\n * @example\n * ```tsx\n * <div className=\"relative\">\n *   <Content />\n *   <Scrim level=\"strong\" />\n * </div>\n * ```\n */\nexport const Scrim = ({\n  className,\n  level,\n  ref,\n  ...props\n}: ScrimProps & { ref?: React.Ref<HTMLDivElement> }): React.JSX.Element => (\n  <div\n    aria-hidden=\"true\"\n    className={cn(scrimVariants({ level }), className)}\n    ref={ref}\n    {...props}\n  />\n);\nScrim.displayName = \"Scrim\";\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable",
  "platforms": [
    "web"
  ]
}
