{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select-font-preview",
  "title": "Font family select with preview",
  "description": "Font family select with preview, built from the select component.",
  "registryDependencies": [
    "field",
    "select"
  ],
  "files": [
    {
      "path": "registry/patterns/select-font-preview/select-font-preview.tsx",
      "content": "/**\n * Font family select with preview - adapted for tealmac UI from the ReUI example \"c-select-31\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\nimport { Field } from \"@/components/ui/field\"\nimport {\n  Select,\n  SelectContent,\n  SelectGroup,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\"\n\nconst fonts = [\n  { value: \"sans\", label: \"Inter\", className: \"font-sans\" },\n  { value: \"mono\", label: \"Mono\", className: \"font-mono\" },\n  { value: \"serif\", label: \"Serif\", className: \"font-serif\" },\n]\n\nexport function SelectFontPreview() {\n  return (\n    <Field className=\"max-w-xs\">\n      <Select defaultValue={fonts[0].value}>\n        <SelectTrigger aria-label=\"Select font\" className=\"w-[200px]\">\n          <SelectValue placeholder=\"Select font\" />\n        </SelectTrigger>\n        <SelectContent position=\"popper\">\n          <SelectGroup>\n            {fonts.map((font) => (\n              <SelectItem key={font.value} value={font.value}>\n                <span className={font.className}>{font.label}</span>\n              </SelectItem>\n            ))}\n          </SelectGroup>\n        </SelectContent>\n      </Select>\n    </Field>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}