
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@chakra-ui/c-icon
Advanced tools
Chakra UI Vue | A component to display icons in the browser component
A component to display icons in the browser
yarn add @chakra-ui/c-icon
# or
npm i @chakra-ui/c-icon
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:
svg from Figma, Sketch, etc.Add the
fill=currentColorattribute to thepathorgso that when you this<Icon color="gray.200"/>, it works correctly.
// Step 1: Each icon should be stored as an object of `path` and `viewBox`
const customIcons = {
icon1: {
path: `<path fill="currentColor" d="..." />`,
// If the icon's viewBox is `0 0 24 24`, you can ignore `viewBox`
viewBox: "0 0 40 40",
},
icon2: {
path: `
<g fill="currentColor">
<path d="..."/>
</g>
`
}
};
// Step 2: Add the custom icon to the Chakra plugin
const app = createApp(App)
.use(ChakraUIVuePlugin, {
icons: {
// ...
extend: customIcons
}
})
You can now consume your custom icons in your template like this:
<template>
<c-icon name="icon1" color="yellow.600" />
<c-icon name="icon2" color="green.300" />
</template>
You can access the full merged icons object under
this.$chakra.iconsin your Vue components.
FAQs
Chakra UI Vue | A component to display icons in the browser component
The npm package @chakra-ui/c-icon receives a total of 57 weekly downloads. As such, @chakra-ui/c-icon popularity was classified as not popular.
We found that @chakra-ui/c-icon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.