Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@commercetools-uikit/tag
Advanced tools
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.
import Tag from '@commercetools-uikit/tag';
<Tag
type="normal"
isDisabled={false}
to="/project-key/products/foo"
onRemove={() => {}}
>
Icecream
</Tag>;
Props | Type | Required | Values | Default | Description |
---|---|---|---|---|---|
type | string | - | normal , warning | normal | Indicates color scheme of the tag |
styles.body | object | - | - | - | Styles spread onto the tag body |
linkTo | string | - | - | - | Location the tag links to when enabled |
isDisabled | bool | - | - | false | Disables the tag and the option to remove |
onRemove | func | - | - | - | Called when remove is clicked |
onClick | func | - | - | - | Called when tag is clicked (but not when remove button is clicked) |
horizontalConstraint | object | - | xs , s , m , l , xl , scale | scale | Horizontal size limit of the input field. |
children | node | ✅ | - | - | Content rendered within the tag |
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
A tag is often used for items that need to be labeled or categorized.
The npm package @commercetools-uikit/tag receives a total of 3,252 weekly downloads. As such, @commercetools-uikit/tag popularity was classified as popular.
We found that @commercetools-uikit/tag demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.