mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
24 lines
767 B
TypeScript
24 lines
767 B
TypeScript
import { RadioGroup, RadioGroupItem } from "@lcui/react";
|
|
import { Label } from "@lcui/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<RadioGroup value="comfortable" className="radio-group-demo">
|
|
<div className="flex flex-row items-center gap-3 flex-nowrap">
|
|
<RadioGroupItem value="default" id="r1" />
|
|
<Label for="r1">Default</Label>
|
|
</div>
|
|
<div className="flex flex-row items-center gap-3 flex-nowrap">
|
|
<RadioGroupItem value="comfortable" id="r2" checked />
|
|
<Label for="r2">Comfortable</Label>
|
|
</div>
|
|
<div className="flex flex-row items-center gap-3 flex-nowrap">
|
|
<RadioGroupItem value="compact" id="r3" />
|
|
<Label for="r3">Compact</Label>
|
|
</div>
|
|
</RadioGroup>
|
|
);
|
|
}
|
|
|
|
|