Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@commercetools-uikit/tag
Advanced tools
#### 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.
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 1,604 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.