WARNING: This component is in
Draft
status. This means that it is still in development and may have bugs or missing features. It is not intended to be used in production. You may use it for testing purposes.Radio Group
Visually or semantically separates content.
import { component$ } from '@builder.io/qwik';
import { Label, RadioGroup } from '~/components/ui';
export default component$(() => {
return (
<RadioGroup.Root>
<div class="flex items-center space-x-2">
<RadioGroup.Item name="size" value="default" id="r1" />
<Label for="r1">Default</Label>
</div>
<div class="flex items-center space-x-2">
<RadioGroup.Item name="size" value="comfortable" id="r2" />
<Label for="r2">Comfortable</Label>
</div>
<div class="flex items-center space-x-2">
<RadioGroup.Item name="size" value="compact" id="r3" />
<Label for="r3">Compact</Label>
</div>
</RadioGroup.Root>
);
});