{
  "name": "faceted-demo",
  "type": "registry:example",
  "registryDependencies": [
    "button",
    "faceted"
  ],
  "files": [
    {
      "path": "examples/faceted-demo.tsx",
      "type": "registry:example",
      "content": "import { Button } from \"@/registry/bases/radix/ui/button\";\nimport {\n  Faceted,\n  FacetedContent,\n  FacetedEmpty,\n  FacetedGroup,\n  FacetedInput,\n  FacetedItem,\n  FacetedItemIndicator,\n  FacetedList,\n  FacetedTrigger,\n  FacetedValue,\n} from \"@/registry/bases/radix/ui/faceted\";\n\nconst frameworks = [\n  { label: \"Next.js\", value: \"next\" },\n  { label: \"Remix\", value: \"remix\" },\n  { label: \"Astro\", value: \"astro\" },\n  { label: \"SvelteKit\", value: \"sveltekit\" },\n  { label: \"Nuxt\", value: \"nuxt\" },\n];\n\nexport default function FacetedDemo() {\n  return (\n    <Faceted items={frameworks}>\n      <FacetedTrigger asChild>\n        <Button variant=\"outline\" className=\"w-48\">\n          <FacetedValue placeholder=\"Select framework...\" />\n        </Button>\n      </FacetedTrigger>\n      <FacetedContent>\n        <FacetedInput placeholder=\"Search framework...\" />\n        <FacetedList>\n          <FacetedEmpty>No framework found.</FacetedEmpty>\n          <FacetedGroup>\n            {frameworks.map((framework) => (\n              <FacetedItem key={framework.value} value={framework.value}>\n                {framework.label}\n                <FacetedItemIndicator />\n              </FacetedItem>\n            ))}\n          </FacetedGroup>\n        </FacetedList>\n      </FacetedContent>\n    </Faceted>\n  );\n}\n",
      "target": ""
    }
  ]
}