mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
FieldLegend,
|
|
FieldSet,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { RadioGroup, RadioGroupItem } from "@/styles/base-nova/ui/radio-group"
|
|
|
|
export function RadioGroupFieldset() {
|
|
return (
|
|
<FieldSet className="w-full max-w-xs">
|
|
<FieldLegend variant="label">Subscription Plan</FieldLegend>
|
|
<FieldDescription>
|
|
Yearly and lifetime plans offer significant savings.
|
|
</FieldDescription>
|
|
<RadioGroup defaultValue="monthly">
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="monthly" id="plan-monthly" />
|
|
<FieldLabel htmlFor="plan-monthly" className="font-normal">
|
|
Monthly ($9.99/month)
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="yearly" id="plan-yearly" />
|
|
<FieldLabel htmlFor="plan-yearly" className="font-normal">
|
|
Yearly ($99.99/year)
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="lifetime" id="plan-lifetime" />
|
|
<FieldLabel htmlFor="plan-lifetime" className="font-normal">
|
|
Lifetime ($299.99)
|
|
</FieldLabel>
|
|
</Field>
|
|
</RadioGroup>
|
|
</FieldSet>
|
|
)
|
|
}
|