npm.io
3.1.7 • Published 4 years ago

@crave/farmblocks-tags

Licence
MIT
Version
3.1.7
Deps
2
Size
7 kB
Vulns
0
Weekly
0
Stars
20

Farmblocks Tag

A styled and removable tag.

Installation

npm install @crave/farmblocks-tags

API

Property Description Type
text tag text string
onRemove function to be called when the tag is closed - its absence hide the remove button function
value a value to be passed with onRemove when the function is called any
type will set the colors of the tag string, oneOf(tagTypes)
icon icon placed at the left side of the text node
children any content that can be rendered node

License

MIT

Keywords