.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Radio

Tune in every morning to .finallyFM

The Radio component can be used by importing { Radio } from "finallyreact"

Example

Option 1
Option 2
Option 3

Selected Value:

Radio: Example

Default Value

Option 1
Option 2
Option 3

Selected Value: option2

Radio: Default Value

Size

Small 1
Small 2
Small 3
Medium 1
Medium 2
Medium 3
Large 1
Large 2
Large 3
Radio: Size

Color

Blue 1
Blue 2
Blue 3
Emerald 1
Emerald 2
Emerald 3
Lava 1
Lava 2
Lava 3
Radio: Color

Disabled

All Disabled
All Disabled
All Disabled
Option 1
Option 2
Disabled Option
Radio: Disabled

Multi Select

Option 1
Option 2
Option 3

Selected Values:

Radio: Multi Select

Simple

Option 1
Option 2
Option 3

Selected Value:

Radio: Simple

Radio Props

Prop NameProp TypeDescription
allowUnselectbooleanAllow unselecting a radio option (default true)
colorstringAny FinallyReact color
disabledbooleanDisables user interaction
initialValuestringDefault value of the radio
inputPropsHTMLAttributesProps for the radio input
labelPropsHTMLAttributesProps for the label
multiSelectbooleanEnable multi-option select
namestringOptional identifier for the radio
optionsobject[]Options for the radio
options[].disabled
booleanDisables the option
options[].label
stringLabel of the option
options[].value
anyValue of the option
simplebooleanRenders a simple radio
size'sm' | 'md' | 'lg'Size of the radio
valueanyValue of the radio