Radio buttons

e-radio Component is a user interface element used for selecting a single option from a set of mutually exclusive choices. It presents a list of options, and users can choose one option at a time by clicking on a radio button associated with each choice.

view on GitHub

Props

Explore the available props for the form component

e-radio-group

PropertyDescriptionTypeDefault
retain-colorallows the input to maintain the color regardless of the state it is in.booleanfalse
disabledModify the style and change the input state to disabledbooleanfalse
readonlychange the input state to disabledbooleanfalse
label-inlineset the css rule white-space: nowrap; to the labelbooleanfalse
detaildisplays an informational message below the componentstring''
outlinedapplies an outlined stylebooleanfalse
labellabel associated with the input fieldbooleanfalse
model-valueThe v-model value of the component.booleanfalse
colorApplies specified color to the component - supports only utility colors (for example primary or secondary)stringprimary
detail-errorsshows an error message below the component and changes the stateArray[]
label-min-widthThis sets a minimum width in px for the labelstring
colsSets the default number of columns the component extends. Available options are: {1...24}.string | number
smChanges the number of columns on small and greater breakpoints.string | number
mdChanges the number of columns on medium and greater breakpoints.string | number
lgChanges the number of columns on large and greater breakpoints.string | number
rulesAccepts a array of types function that pass an input value as an argument and must return either true | false or a string containing an error message. This also change the input state.Array<(param: any)=> string | true>[]
hide-overlayhides the color layer that covers the componentbooleanfalse
flatremoves the border-bottom from the componentbooleanfalse
rowdisplay the component as a row instead of a columnbooleanfalse

e-radio

PropertyDescriptionTypeDefault
retain-colorallows the input to maintain the color regardless of the state it is in.booleanfalse
disabledModify the style and change the input state to disabledbooleanfalse
readonlychange the input state to disabledbooleanfalse
labellabel associated with the input fieldbooleanfalse
model-valueThe v-model value of the component.booleanfalse
colorApplies specified color to the component - supports only utility colors (for example primary or secondary)stringprimary
label-min-widthThis sets a minimum width in px for the labelstring