Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
some extra info about the checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhol committed Sep 20, 2020
1 parent 6920b97 commit 16c627e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/checkbox/Checkbox.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ExampleContainer } from 'common/containers';

Checkboxes are used when you want to provide the user with a choice between one or more options (that could be optional). There are no stylistic choices, so just go for a regular old checkbox.

The checkbox takes a default checked value and handles checked with internal state. If you need to trigger some effect based on the state of the checkbox you can pass a function to onChange, onChange also gives the checked state as a argument to the callback.

<Preview>
<Story name="All">
<ExampleContainer>
Expand Down

0 comments on commit 16c627e

Please sign in to comment.