Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@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,905 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.