Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Simple example:
```

**Props**
| Prop | Type | Default | Description |
|:-------------:|:-----------------------------------------------------------------:|:-------------:|:----------------------------------------------------------------------------------------------------:|

| Prop | Type | Default | Description |
|:-----------------------------:|:------------:|:------------------:|:----------------------------------------------------------------------------------------------------:|
| checkboxStyle | any | null | By sending an object you can style the checkbox's color, size and more. |
| disabled | bool | false | This disables the possibility of the checkbox being used. |
| flexDirection | oneOf(['row', 'row-reverse', 'column', 'column-reverse']), string | 'row' | Maybe you need the checkbox to be on top of an image? You can do that with this prop. |
Expand All @@ -37,4 +38,4 @@ Simple example:
| initialValue | bool | false | Should the initial state of your checkbox be false or true? |
| label | string | null | The text next to your checkbox. |
| labelStyle | any | null | Style your checkbox's text. |
| onChange | function | () => {} | This prop take an arrow function and everytime the user presses the checkbox the function is called. |
| onChange | function | () => {} | This prop take an arrow function and everytime the user presses the checkbox the function is called. |