Radio

Radio Props

Name
Type
Default
Description

checked

boolean

false

Defines whether the radio input is checked or not

colors

object

Object with Tailwind CSS colors classes

colors.bgCheckedIos

string

'bg-primary'

colors.bgCheckedMaterial

string

'bg-md-light-primary dark:bg-md-dark-primary'

colors.borderCheckedIos

string

'border-primary'

colors.borderCheckedMaterial

string

'border-md-light-primary dark:border-md-dark-primary'

colors.borderIos

string

'border-black border-opacity-30 dark:border-white dark:border-opacity-30'

colors.borderMaterial

string

'border-md-light-outline dark:border-md-dark-outline'

component

string

'label'

Component's HTML Element

defaultChecked

boolean

false

Defines whether the radio input is checked or not, for the case if it is uncontrolled component

disabled

boolean

false

Defines whether the radio input is disabled

name

string

Radio input name

readonly

boolean

false

Defines whether the radio input is readonly

touchRipple

boolean

true

Enables touch ripple effect in Material theme

value

any

Radio input value

Radio Events

Name
Type
Description

change

function(e)

Event will be triggered when radio state changed

Radios List

Radios List is not a separate component, but just a particular case of using List and ListItem components.

Examples

Last updated