Installations
npm install @chakra-ui/c-icon
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
16.16.0
NPM Version
8.11.0
Score
56.9
Supply Chain
63.1
Quality
77.2
Maintenance
100
Vulnerability
98.2
License
Releases
@chakra-ui/vue-next@2.1.0-beta.11
Published on 28 Mar 2023
@chakra-ui/vue-next@2.1.0-beta.10
Published on 28 Mar 2023
@chakra-ui/vue-next@2.1.0-beta.8
Published on 21 Mar 2023
@chakra-ui/vue-next@2.1.0-beta.7
Published on 14 Mar 2023
@chakra-ui/vue-next@2.1.0-beta.6
Published on 12 Mar 2023
@chakra-ui/vue-next@2.1.0-beta.5
Published on 12 Mar 2023
Contributors
Unable to fetch Contributors
Languages
TypeScript (81.11%)
Vue (17.15%)
JavaScript (0.74%)
EJS (0.74%)
HTML (0.27%)
Developer
Download Statistics
Total Downloads
25,095
Last Day
16
Last Week
62
Last Month
164
Last Year
2,826
GitHub Statistics
261 Stars
1,381 Commits
33 Forks
11 Watching
80 Branches
16 Contributors
Bundle Size
85.59 kB
Minified
27.60 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0-alpha.13
Package Id
@chakra-ui/c-icon@1.0.0-alpha.13
Unpacked Size
483.66 kB
Size
27.20 kB
File Count
11
NPM Version
8.11.0
Node Version
16.16.0
Total Downloads
Cumulative downloads
Total Downloads
25,095
Last day
45.5%
16
Compared to previous day
Last week
77.1%
62
Compared to previous week
Last month
10.8%
164
Compared to previous month
Last year
-84.4%
2,826
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
1
@chakra-ui/c-icon
A component to display icons in the browser
Installation
1yarn add @chakra-ui/c-icon 2# or 3npm i @chakra-ui/c-icon
Adding custom icons
All Chakra icons are registered in the Chakra plugin under the icons.extend
key. So you
can extend this object to add your own icons. Here are the steps:
- Export the icon's
svg
from Figma, Sketch, etc. - Use a tool like SvgOmg to reduce the size and minify the markup.
- Add the icon to the theme object.
Add the
fill=currentColor
attribute to thepath
org
so that when you this<Icon color="gray.200"/>
, it works correctly.
1// Step 1: Each icon should be stored as an object of `path` and `viewBox` 2const customIcons = { 3 icon1: { 4 path: `<path fill="currentColor" d="..." />`, 5 // If the icon's viewBox is `0 0 24 24`, you can ignore `viewBox` 6 viewBox: "0 0 40 40", 7 }, 8 icon2: { 9 path: ` 10 <g fill="currentColor"> 11 <path d="..."/> 12 </g> 13 ` 14 } 15}; 16 17// Step 2: Add the custom icon to the Chakra plugin 18const app = createApp(App) 19 .use(ChakraUIVuePlugin, { 20 icons: { 21 // ... 22 extend: customIcons 23 } 24 })
You can now consume your custom icons in your template like this:
1<template> 2 <c-icon name="icon1" color="yellow.600" /> 3 <c-icon name="icon2" color="green.300" /> 4</template>
You can access the full merged icons object under
this.$chakra.icons
in your Vue components.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 7/15 approved changesets -- score normalized to 4
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/auto-merge.yml:1
- Warn: no topLevel permission defined: .github/workflows/dev.yml:1
- 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
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/auto-merge.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/auto-merge.yml/develop?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/auto-merge.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/dev.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/quality.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/release.yml/develop?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui-vue-next/release.yml/develop?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'develop'
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 27 are checked with a SAST tool
Reason
42 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-hpx4-r86g-5jrg
- Warn: Project is vulnerable to: GHSA-prr3-c3m5-p7q2
- Warn: Project is vulnerable to: GHSA-p2fh-2h23-6grg
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-96g7-g7g9-jxw8
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4
- Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2
- Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
2.9
/10
Last Scanned on 2025-01-27
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 More