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

1.2.0 • Public • Published

Checkbox

The Checkbox component maps to a checkbox input and a label.

yarn add @smashing/checkbox

Primary appearance

Default

<Checkbox>Stay signed in</Checkbox>
Checked

<Checkbox checked>Stay signed in</Checkbox>

Minimal appearance

Default

<Checkbox appearance="minimal">Stay signed in</Checkbox>
Checked

<Checkbox appearance="minimal" checked>
  Stay signed in
</Checkbox>

Disabled Button

Default

<Checkbox disabled>Stay signed in</Checkbox>
Checked

<Checkbox disabled checked>
  Stay signed in
</Checkbox>

Card appearance

Default

<Checkbox appearance="card"> {icon} Stay signed in</Checkbox>
Checked

<Checkbox appearance="card" checked>
  {icon}
  Stay signed in
</Checkbox>
Disabled

<Checkbox appearance="card" disabled>
  {icon}
  Stay signed in
</Checkbox>

Readme

Keywords

Package Sidebar

Install

npm i @smashing/checkbox

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

46.2 kB

Total Files

19

Last publish

Collaborators

  • amroz123
  • hzub
  • idered
  • mkolakowska
  • mzbiejczuk
  • qk