Components

RadioGroup

A set of mutually-exclusive choices.

Usage

import { RadioGroup, Label } from '@onersoft/design-system'

<RadioGroup.Root defaultValue="balanced" aria-label="Profile">
  <RadioGroup.Item id="efficient" value="efficient" />
  <Label htmlFor="efficient">Efficient</Label>
  <RadioGroup.Item id="balanced" value="balanced" />
  <Label htmlFor="balanced">Balanced</Label>
</RadioGroup.Root>

Parts

Root, Item. Mirrors Radix RadioGroup. Root accepts value, defaultValue, onValueChange, disabled, required.

On this page