@erco-ui/checkbox
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.20 • Public • Published

Checkbox

A checkbox component.

Props

Name Type Description
color string Checkbox color
id string Checkbox id
label string Checkbox label
checked boolean Checkbox state
disabled boolean Checkbox disabled state

Events

Name Type Description
onChange function Callback function when the checkbox is changed

Example

<Checkbox
  color='purple'
  id='my-checkbox'
  label='My checkbox'
  checked={true}
  onChange={() => {}}
  disabled={false}
/>

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i @erco-ui/checkbox

Weekly Downloads

38

Version

1.0.0-alpha.20

License

MIT

Unpacked Size

49.5 kB

Total Files

10

Last publish

Collaborators

  • ecolina05