@foundationcomponentrepo/selection-control v0.6.0
@foundationcomponentrepo/selection-control
Base selection-control component for foundation
Props
type : string
The type prop passed to selection-control is to switch between the checkbox and radio input types.
id: string
The id prop is to pass the id attribute to the <input> tag of the selection-control
name: string
The name prop is to pass the name attribute to the <input> tag of the selection-control
value?: string
The value prop is to pass the value attribute to the <input> tag of the selection-control
isSelected : boolean
The isSelected prop passed is to indicate whether it is checked or unchecked.
required?: string
The required prop is to pass the required attribute to the <input> tag of the selection-control
disabled : boolean
The disabled prop is to pass the disabled attribute to the <input> tag of the selection-control
onClick: (e: any) => void
The onClick prop is to pass a function which can be used to capture the checked status of the selection-control
Install
npm install --save @foundationcomponentrepo/selection-controlLicense
MIT © unplatforms