@n3/react-checkbox-group
v0.2.0
Published
Checkbox group component for react applications based on @n3/kit
Downloads
22
Maintainers
Keywords
Readme
@n3/react-checkbox-group
Группа чекбоксов для приложений на базе @n3/kit
.
import CheckboxGroup from '@n3/react-checkbox-group';
Props
| Название | Обязательность | Тип | Значение по умолчанию | Описание | |----------|----------------|-----|-----------------------|----------| | inline | | boolean | false | инлайновый вывод чекбоксов | | name | | string | "" | name каждого html-элемента input | | value | + | ReactText[] | | массив значений выбранных опций | | disabled | | boolean | false | выключена ли данная группа чекбоксов | | options | + | Record<string, any>[] | | список опций данной группы чекбоксов | | valueKey | | string | "value" | ключ, по которому хранятся значения в объектах options | | labelKey | | string | "label" | ключ, по которому хранятся заголовки в объектах options | | onChange | | (nextValue: ReactText[]) => void | "(): void => {}" | хэндлер изменения значения |