Skip to main content
The Radio field stores one value from a predefined list and presents the choices as a radio-button group.
Options may be strings or { label, value } objects.

Config options

Option colors

Give an option a color to show its value as a coloured pill in the admin panel. color is one of gray, blue, green, yellow, red, pink and purple, the names in the OptionColor type. Radio fields follow the same rules as Select option colors, including where pills appear and how uncoloured values show.

Admin options

Radio fields support the standard field admin options, plus this option:

Example

Custom components

Field

Server component

Client component

Label

Server component

Client component