{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-group-legend-and-description",
  "title": "Radio group with legend and description",
  "description": "Radio group with legend and description, built from the radio group component.",
  "registryDependencies": [
    "field",
    "radio-group"
  ],
  "files": [
    {
      "path": "registry/patterns/radio-group-legend-and-description/radio-group-legend-and-description.tsx",
      "content": "/**\n * Radio group with legend and description - adapted for tealmac UI from the ReUI example \"c-radio-group-6\"\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 {\n  Field,\n  FieldDescription,\n  FieldLabel,\n  FieldLegend,\n  FieldSet,\n} from \"@/components/ui/field\"\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\"\n\nexport function RadioGroupLegendAndDescription() {\n  return (\n    <FieldSet className=\"w-full max-w-xs\">\n      <FieldLegend>Battery Level</FieldLegend>\n      <FieldDescription>Choose your preferred battery level.</FieldDescription>\n      <RadioGroup defaultValue=\"medium\">\n        <Field orientation=\"horizontal\">\n          <RadioGroupItem value=\"high\" id=\"battery-high\" />\n          <FieldLabel htmlFor=\"battery-high\">High</FieldLabel>\n        </Field>\n        <Field orientation=\"horizontal\">\n          <RadioGroupItem value=\"medium\" id=\"battery-medium\" />\n          <FieldLabel htmlFor=\"battery-medium\">Medium</FieldLabel>\n        </Field>\n        <Field orientation=\"horizontal\">\n          <RadioGroupItem value=\"low\" id=\"battery-low\" />\n          <FieldLabel htmlFor=\"battery-low\">Low</FieldLabel>\n        </Field>\n      </RadioGroup>\n    </FieldSet>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}