5.4.0 • Published 3 years ago
@foundation-base/select-field v5.4.0
@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-fieldLicense
MIT © lijoejohn