@crave/farmblocks-tags

Tags

Stats

StarsIssuesVersionUpdatedCreatedSize
@crave/farmblocks-tags
20233.1.5a month ago4 years agoMinified + gzip package size for @crave/farmblocks-tags in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.