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