0.6.0 • Published 2 years ago
@foundationcomponentrepo/tag v0.6.0
@foundationcomponentrepo/tag
Base tag component for foundation
Props
label: string
The label
prop is to pass the content, that is to be displayed in the tag
selectable : boolean
The selectable
prop determines whether the tag shows a fixed label, or acts like a toggle
selected : boolean
The selected
prop controls the toggle action, i.e., whether the tag is selected or not
onClick: (e: any) => void
The onClick
prop is to pass a function which is to be triggered on the click of the tag
Install
npm install --save @foundationcomponentrepo/tag
License
MIT © unplatforms