snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
27
apps/v4/examples/aria/radio-group-disabled.tsx
Normal file
27
apps/v4/examples/aria/radio-group-disabled.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Field, FieldLabel } from "@/styles/aria-nova/ui/field"
|
||||
import { RadioGroup, RadioGroupItem } from "@/styles/aria-nova/ui/radio-group"
|
||||
|
||||
export function RadioGroupDisabled() {
|
||||
return (
|
||||
<RadioGroup aria-label="Radios" defaultValue="option2" className="w-fit">
|
||||
<Field orientation="horizontal" data-disabled>
|
||||
<RadioGroupItem value="option1" id="disabled-1" isDisabled />
|
||||
<FieldLabel htmlFor="disabled-1" className="font-normal">
|
||||
Disabled
|
||||
</FieldLabel>
|
||||
</Field>
|
||||
<Field orientation="horizontal">
|
||||
<RadioGroupItem value="option2" id="disabled-2" />
|
||||
<FieldLabel htmlFor="disabled-2" className="font-normal">
|
||||
Option 2
|
||||
</FieldLabel>
|
||||
</Field>
|
||||
<Field orientation="horizontal">
|
||||
<RadioGroupItem value="option3" id="disabled-3" />
|
||||
<FieldLabel htmlFor="disabled-3" className="font-normal">
|
||||
Option 3
|
||||
</FieldLabel>
|
||||
</Field>
|
||||
</RadioGroup>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user