Chakra UI is a component system for building products with speed ⚡️
Installations
npm install @chakra-ui/tag
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
18.17.1
NPM Version
9.6.7
Score
89.9
Supply Chain
89
Quality
77.6
Maintenance
100
Vulnerability
99.3
License
Releases
@chakra-ui/react@3.8.1
Updated on Feb 19, 2025
@chakra-ui/panda-preset@3.8.1
Updated on Feb 19, 2025
@chakra-ui/cli@3.8.1
Updated on Feb 19, 2025
@chakra-ui/react@3.8.0
Updated on Feb 09, 2025
@chakra-ui/panda-preset@3.8.0
Updated on Feb 09, 2025
@chakra-ui/cli@3.8.0
Updated on Feb 09, 2025
Contributors
Languages
TypeScript (82.74%)
MDX (16.46%)
JavaScript (0.65%)
CSS (0.08%)
HTML (0.07%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
74,966,673
Last Day
85,135
Last Week
421,357
Last Month
1,885,846
Last Year
25,958,822
GitHub Statistics
MIT License
38,565 Stars
10,486 Commits
3,362 Forks
201 Watchers
12 Branches
682 Contributors
Updated on Feb 21, 2025
Bundle Size
5.50 kB
Minified
2.07 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.1.1
Package Id
@chakra-ui/tag@3.1.1
Unpacked Size
33.71 kB
Size
5.97 kB
File Count
17
NPM Version
9.6.7
Node Version
18.17.1
Published on
Sep 08, 2023
Total Downloads
Cumulative downloads
Total Downloads
74,966,673
Last Day
0%
85,135
Compared to previous day
Last Week
-6.5%
421,357
Compared to previous week
Last Month
34.1%
1,885,846
Compared to previous month
Last Year
8.4%
25,958,822
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
2
Tag
This component is displayed as an accessible tag with an optional link and/or button to remove it.
Installation
1yarn add @chakra-ui/tag
Import component
1import { Tag } from "@chakra-ui/tag"
Basic Usage
1<Tag />
Sizes
Pass the size
prop to change the size of the tag.
1<> 2 <Tag size="sm" colorScheme="gray"> 3 Gray 4 </Tag> 5 <Tag colorScheme="gray">Gray</Tag> 6 <Tag size="lg" colorScheme="gray"> 7 Gray 8 </Tag> 9</>
Color
Pass the colorScheme
prop to change the background color of the tag component
1<> 2 <Tag colorScheme="pink">Pink</Tag> 3</>
With icon
The tag component can contain an Icon. This is done by using the TagIcon
component within the tag component.
1<> 2 <Tag colorScheme="cyan"> 3 <TagIcon size="12px" as={AddIcon} /> 4 <TagLabel>Green</TagLabel> 5 </Tag> 6</>
With close button
Use the TagCloseButton
to apply a close button to the tag component.
1<Tag variant="solid" size="sm" colorScheme="cyan"> 2 <TagLabel>Tab Label</TagLabel> 3 <TagCloseButton /> 4</Tag>
With custom element
Tag component can contain a custom element. This is done by placing the custom element within the tag component.
1<Tag size="lg" colorScheme="red" borderRadius="full"> 2 <Avatar 3 src="https://bit.ly/sage-adebayo" 4 size="xs" 5 name="Segun Adebayo" 6 ml={-1} 7 mr={2} 8 /> 9 <TagLabel>Segun</TagLabel> 10 <TagCloseButton /> 11</Tag>

No vulnerabilities found.
Reason
30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
Found 10/21 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: topLevel 'actions' permission set to 'write': .github/workflows/issue-stale.yml:10
- Warn: no topLevel permission defined: .github/workflows/quality.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/issue-stale.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/issue-stale.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 20 are checked with a SAST tool
Reason
11 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv
- Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q
- Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38
- Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975
- Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq
Score
4.2
/10
Last Scanned on 2025-02-17
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @chakra-ui/tag
@chakra-ui/c-tag
Chakra UI Vue | Tag component component
@hackr/chakra-ui-tag
This component displays as a tag with an optional link and/or button to remove the given tag.
@teste-ui/tag
This component displays as a tag with an optional link and/or button to remove the given tag.
@incmix-ui/tag
Tag Component