@foundationcomponentrepo/select-field
v0.6.0
Published
Base select-field component for foundation
Downloads
4
Readme
@foundationcomponentrepo/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 @foundationcomponentrepo/select-field
License
MIT © unplatforms