Radio

Requires JS

A toggle that allows users to choose between checked and unchecked states.

Usage

import { Radio } from "#/ui/components/Radio"
<Radio />

Note: Radios are note designed to be used alone. You should always use them within a RadioGroup.

Label

You can pass a label to your Radio to automatically associate it with the Radio.

If you need a Radio with accessible text that isn’t visible, you can hide the label

Optionally, if you need your label separated from your Radio, you can associate them by using the id and htmlFor props.

Size

You can change the size of your Radio by passing the size prop.

Icon

You can pass a custom icon if you want to change the default check

You may need to adjust the size of your icon to fit the Radio (this isn’t done for you for custom icons)

Controlled

You can control the state of the Radio from outside of the component by passing the checked and onChange props.

Customisation

If you’d like to extend the radio to make a larger clickable area, you can use the RadioCard component.

See more at RadioCard