Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-uikit/tag

Package Overview
Dependencies
Maintainers
4
Versions
936
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/tag

#### Description

  • 10.18.4-canary.9
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Tags

Description

A tag is often used for items that need to be labeled or categorized. This might apply to search terms or categories of a product. Tags can also have a "remove" button.

Usage
import Tag from '@commercetools-uikit/tag';

<Tag
  type="normal"
  isDisabled={false}
  to="/project-key/products/foo"
  onRemove={() => {}}
>
  Icecream
</Tag>;
Properties
PropsTypeRequiredValuesDefaultDescription
typestring-normal, warningnormalIndicates color scheme of the tag
styles.bodyobject---Styles spread onto the tag body
linkTostring---Location the tag links to when enabled
isDisabledbool--falseDisables the tag and the option to remove
onRemovefunc---Called when remove is clicked
onClickfunc---Called when tag is clicked (but not when remove button is clicked)
horizontalConstraintobject-xs, s, m, l, xl, scalescaleHorizontal size limit of the input field.
childrennode--Content rendered within the tag
Where to use

Main Functions and use cases are:

  • Adding something to a set example: Adding products to categories

  • Remove from a set example: Removing products from categories

  • Showing a set example: List of categories a product is in

FAQs

Package last updated on 31 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc