5.4.0 • Published 1 year ago

@foundation-base/select-field v5.4.0

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

@foundation-base/select-field

Base select-field component for foundation

Props

options: string[]

The options prop is to pass options to the select field as an array of strings.

onClick: (e: any) => void

The onClick prop can be used to retrieve the id of the select-field, the option selected, on the click of an option

activeIndex?: number

The activeIndex prop is the zero-based index of the initially active option.

optionCount?: number

The optionCount prop decides the number of options to be displayed in the dropdown list, beyond which, a scroll bar appears.

id?: string

The id prop represents the unique ID of the select-field

name?: string

The name prop represents the name of the select-field

placeholder?: string

The placeholder prop is to display placeholder text in the select-field, if no option is selected

Install

npm install --save @foundation-base/select-field

License

MIT © lijoejohn

5.4.0

1 year ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.1

2 years ago

2.1.1

2 years ago

2.2.0

2 years ago

3.2.0

2 years ago

2.1.0

2 years ago