Checkbox component for Ink
npm install ink-checkbox> Checkbox component for Ink.
```
$ npm install ink-checkbox --save
Coming soon.
##### label
Type: string
Value to display next to the checkbox.
##### focused
Type: string
Checks if the cursor is above the checkbox. Highlights the highlighted checkbox using Ink's focus management.
##### index
Type: number \undefined
Default:
Checkbox identifier. If you are rendering more than one checkbox, it can be used instead of label to identify.
##### checked
Type: boolean\false
Default:
Controls whether the checkbox is selected by default.
##### wrapperStyles
Type: Object{}
Default:
Override props of wrapper Ink's Box component.
##### styles
Type: Object{}
Default:
Override default styles.
##### onChanged
Type: Function
Function to call for value updates. So it triggers when Space, y and n keys.
##### onSubmitted
Type: Function
Function to call for value submits. So it triggers when Enter` keys.