Radio

  • Used for selecting one value from several options.

Install

import {Radio} from '@xsolla/uikit'

Examples

Usage

<Radio name="radio"
       input={{value: 'basic', onChange: () => void 0}}
       label="Radio"
       radioValue="basic"/>

With redux-form

<Field component={Radio} type="radio" name="redux-radio" radioValue="basic"/>

API

PropertyDescriptionTypeDefault
inputconfig for redux-form or basic radioobject{}
nameradio namestringnull
labellabel for radiostringnull
tooltiptooltip for radiostringnull
radioValuevalue for radioany
disabledset the disabled status of radioboolfalse
dataIdattribute for data identifierstring