1.0.0-alpha.6 • Published 5 years ago

@talixo/checkbox-group v1.0.0-alpha.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Talixo CheckboxGroup

UI Component which represents CheckboxGroup

How to install

Package is available as @talixo/checkbox-group in NPM registry, so you can use it in your project using npm install @talixo/checkbox-group --save or yarn add @talixo/checkbox-group.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/checkbox: ^1.0.0-alpha.7
  • @talixo/shared: ^1.0.0-alpha.7
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/checkbox-group, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

It allows any props which are allowed for 'div'. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
namestringn/aname of checkbox group
optionsOption[]n/aarray of objects which represent options
errorbooleanfalsehas it any error
valuearrayself-controlledselected values when it's controlled

Types

Option

Option which should be shown in Radio Group has few properties:

Property nameTypeDefaultDescription
labelnoden/aLabel to show next to checkbox element
valueanyn/aValue which it represents
disabledbooleanfalseIs it disabled?

Changelog

  • 1.0.0 - initial version