Tag Selector

Install

import {TagSelector} from '@xsolla/uikit'

Example

Locales
EN
RU
AR
BG
CN
CS
DE
ES
FR
HE
IT
JA
KO
PL
value: en, ru
Platforms
Windows
Linux
Mac
value: windows
Disabled
Windows
Linux
Mac
value: windows

Usage

With redux-form

<FieldArray component={TagSelector}
            name="locales"
            items={[
              {label: 'Windows', value: 'windows', required: true},
              {label: 'Linux', value: 'linux'},
              {label: 'Mac', value: 'mac'}
            ]}/>

API

PropertyDescriptionTypeDefault
fieldsconfig for redux-formobject{}
nameinput namestringnull
itemsavailable locales arrayarray[]
disabledset the disabled status of tagboolfalse
isSortingDisabledset the disabled sorting of selected tagsboolfalse