{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "radio-group-example", "title": "Radio Group", "registryDependencies": ["field", "radio-group", "example"], "files": [ { "path": "registry/radix-sera/examples/radio-group-example.tsx", "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-sera/components/example\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/radix-sera/ui/field\"\nimport {\n RadioGroup,\n RadioGroupItem,\n} from \"@/registry/radix-sera/ui/radio-group\"\n\nexport default function RadioGroupExample() {\n return (\n \n \n \n \n \n \n \n \n )\n}\n\nfunction RadioGroupBasic() {\n return (\n \n \n \n \n \n Default\n \n \n \n \n \n Comfortable\n \n \n \n \n \n Compact\n \n \n \n \n )\n}\n\nfunction RadioGroupWithDescriptions() {\n return (\n \n \n \n \n \n
Plus
\n \n For individuals and small teams\n \n
\n \n
\n
\n \n \n \n
Pro
\n For growing businesses\n
\n \n
\n
\n \n \n \n
Enterprise
\n \n For large teams and enterprises\n \n
\n \n
\n
\n
\n
\n )\n}\n\nfunction RadioGroupWithFieldSet() {\n return (\n \n
\n Battery Level\n \n Choose your preferred battery level.\n \n \n \n \n \n High\n \n \n \n \n \n Medium\n \n \n \n \n \n Low\n \n \n \n
\n
\n )\n}\n\nfunction RadioGroupGrid() {\n return (\n \n \n \n \n \n
Small
\n
\n
\n \n \n \n
Medium
\n
\n
\n \n \n \n
Large
\n
\n
\n \n \n \n
X-Large
\n
\n
\n
\n
\n )\n}\n\nfunction RadioGroupDisabled() {\n return (\n \n \n \n \n \n Option 1\n \n \n \n \n \n Option 2\n \n \n \n \n \n Option 3\n \n \n \n \n )\n}\n\nfunction RadioGroupInvalid() {\n return (\n \n
\n Notification Preferences\n \n Choose how you want to receive notifications.\n \n \n \n \n \n Email only\n \n \n \n \n \n SMS only\n \n \n \n \n \n Both Email & SMS\n \n \n \n
\n
\n )\n}\n", "type": "registry:example" } ], "type": "registry:example" }