Skip to content
LyEve UI v0.60.1

Form controls

Radio

A radio button. Bind the group prop to a single state value to link several radios together. Use RadioGroup for the grouped variant with a built-in legend.

Basic group

$0 forever

One paid plugin

every plugin, at the deepest volume bracket

API

PropTypeDefaultDescription
value requiredstring no defaultThe value this radio represents in its group.
group string no defaultBindable selected value of the surrounding group.
label string no defaultInline label text.
description string no defaultA second line under the label.
error string no defaultA message under the radio, tied to it for screen readers, which also mark it invalid.
icon Component no defaultA Lucide icon drawn before the label.
labelHidden booleanfalseKeeps the label for screen readers only, for a radio in a table cell whose column header names it.
size 'sm' | 'md' | 'lg''md'The size of the radio and its label.
variant 'inline' | 'card''inline'The card variant draws a bordered option whose whole surface is the target.
hint string no defaultSubdued hint below the label.
name string no defaultNative form name (must match across grouped radios).
id string no defaultDOM id of the underlying input.
disabled booleanfalseDisable the radio.
required booleanfalseMark as required for form validation.
onchange (value: string) => void no defaultFires when the user picks this radio.
class string no defaultExtra classes, appended to the component's own.