Radio

Radio buttons allow one selection from a group of options


checked
defaultChecked
disabled
error
onChange
required

Props

NameTypeDefaultDescription

checked

boolean

Whether or not this radio button is the currently selected item in the group

name

string

Identified that groups inputs together

defaultChecked

boolean

false

Makes the field checked by default

disabled

boolean

false

Marks the field as disabled and disallows user input

error

boolean

false

Marks the field as invalid and turns red

labelText

string

Required

Label for the input

onChange

function

onChange handler

required

boolean

false

Makes the field require input before the form will submit

id

string

A unique ID for this input

className

string

className passed to the wrapper

Guidelines

  • Whenever possible use radio buttons for short lists (~ 5-7)
  • Add labels, errors and default selections with Radio Group
  • Consider using a Select for long lists

Related Components


The Nulogy Design System is maintained by the Design Ops team. Our mission is to help our teams build better interfaces faster. 🚀

Please reach out with any questions or requests.