Radio Field

<sw-radio-field>

ready
radio input field.

Usage

Loading...
<sw-radio-field
     label="Radio field example"
     bordered
     :options="[
         {'value': 'value1', 'name': 'Label #1'},
         {'value': 'value2', 'name': 'Label #2'},
         {'value': 'value3', 'name': 'Label #3'},
         {'value': 'value4', 'name': 'Label #4'},
         {'value': 'value5', 'name': 'Label #5'}
]"></sw-radio-field>

Component properties

Property name Type Default
bordered Boolean false
options Array
value

Methods

Method name Parameters
onChange event

Imports

  • ./sw-radio-field.html.twig
  • ./sw-radio-field.scss

Watcher

  • value

Mixins

  • sw-form-field

SASS variables

Variable name Value
$sw-field--radio-color-border $color-steam-cloud ($color-gray-300)

Twig blocks

  • sw_radio_field