mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
FieldSet,
|
|
RadioGroup,
|
|
RadioGroupItem,
|
|
Widget,
|
|
} from "@lcui/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Widget className="radio-group-demo">
|
|
<FieldSet>
|
|
<FieldLabel>Subscription Plan</FieldLabel>
|
|
<FieldDescription>
|
|
Yearly and lifetime plans offer significant savings.
|
|
</FieldDescription>
|
|
<RadioGroup value="monthly">
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="monthly" id="plan-monthly" checked />
|
|
<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>
|
|
</Widget>
|
|
);
|
|
}
|