1.3.5 • Published 1 year ago

ink-responsive-select v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ink-responsive-select

Checkbox component for Ink.

Install

$ npm install ink-responsive-select --save

Demo

npm.io

npm.io

npm.io

npm.io

Props

Attributes

label

Type: string

Value to display in a text input.

focused

Type: string

Checks if the cursor is above the checkbox. Highlights the highlighted checkbox using Ink's focus management.

index

Type: number \ Default: undefined

Checkbox identifier. If you are rendering more than one checkbox, it can be used instead of label to identify.

checked

Type: boolean\ Default: false

Controls whether the checkbox is checked.

wrapperStyles

Type: Object Default: {}

Override props of wrapper Ink's Box component.

styles

Type: Object Default: {}

Override default styles.

Event Handlers

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.

1.2.0

1 year ago

1.1.0

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago