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

1.4.0 • Public • Published

Checkbox

The Checkbox component is used in forms when a user needs to select multiple values from several options.

Installation

yarn add @neoauto-ui/checkbox

Import

import { Checkbox } from '@neoauto-ui/checkbox';

Basic Usage

<Checkbox>Checkbox</Checkbox>

Checked Checkbox

<Checkbox isChecked>Checkbox</Checkbox>

Disabled Checkbox

<Checkbox isDisabled>Checkbox</Checkbox>
<Checkbox isChecked isDisabled>Checkbox</Checkbox>

Checkbox with custom color

You can override the background color of the Checkbox to any color.

<Checkbox isChecked>Checkbox</Checkbox>
<Checkbox isChecked bgColor="#000000">Checkbox</Checkbox>
<Checkbox isChecked bgColor="#3276C5">Checkbox</Checkbox>

Changing the icon color and size

You can customize the color of the check icon by passing the iconColor prop.

<Checkbox
  isChecked
  bgColor="#90CAF9"
  iconColor="#000000">
  Option
</Checkbox>

Indeterminate

<Checkbox
  isChecked
  isIndeterminate>
  Parent Checkbox
</Checkbox>

Package Sidebar

Install

npm i @neoauto-ui/checkbox

Weekly Downloads

1

Version

1.4.0

License

ISC

Unpacked Size

30.1 kB

Total Files

23

Last publish

Collaborators

  • davar93
  • ltsfran
  • neotec