RadioGroup

RadioGroup component documentation page

View on GitHub
This is a description for the Radio Group. It could be a very long description that can contain html elements.

Usage

import { RadioGroup, FieldLabel } from '@nerdfish/ui'
<RadioGroup.Root defaultValue="comfortable" label="Spacing">
	<div className="flex items-center space-x-2">
		<RadioGroup.Item value="default" id="r1" />
		<FieldLabel htmlFor="r1">Default</FieldLabel>
	</div>
	<div className="flex items-center space-x-2">
		<RadioGroup.Item value="comfortable" id="r2" />
		<FieldLabel htmlFor="r2">Comfortable</FieldLabel>
	</div>
	<div className="flex items-center space-x-2">
		<RadioGroup.Item value="compact" id="r3" />
		<FieldLabel htmlFor="r3">Compact</FieldLabel>
	</div>
</RadioGroup.Root>