Radio
Radio button components for selecting a single option from a group.
Installation
npm install fuyukaki-uiUsage
import { Radio, RadioGroup, Label } from 'fuyukaki-ui'
function App() {
return (
<RadioGroup defaultValue="option1">
<div className="flex items-center gap-2">
<Radio id="option1" value="option1" />
<Label htmlFor="option1">Option 1</Label>
</div>
<div className="flex items-center gap-2">
<Radio id="option2" value="option2" />
<Label htmlFor="option2">Option 2</Label>
</div>
</RadioGroup>
)
}