Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@carbon/icons-vue
Advanced tools
> Vue components for icons in digital and software products using the Carbon > Design System.
@carbon/icons-vue
Vue components for icons in digital and software products using the Carbon Design System.
Run the following command using npm:
npm install -S @carbon/icons-vue
If you prefer Yarn, use the following command instead:
yarn add @carbon/icons-vue
Icons in this package support the following sizes: 16
, 20
, 24
, and 32
pixels. These sizes refer to the width and height of the icon.
You can install these components from @carbon/icons-vue
through two ways. The
first is to install them when you're initializing your Vue app. For example:
import { CarbonIconsVue, Bee32 } from '@carbon/icons-vue';
import Vue from 'vue';
import App from './App.vue';
Vue.use(CarbonIconsVue, {
components: {
Bee32,
},
});
new Vue({
render: h => h(App),
}).$mount('#app');
Using CarbonComponentsVue
we can pass in any of the icon components that we'd
like to use. In our application, we can then use them by doing:
<template>
<Bee32 />
</template>
If you would rather not register icons globally, you can also import them into individual components.
import { Bee32 } from '@carbon/icons-vue';
export default {
name: 'MyComponent',
component: {
Bee32,
},
};
You can pass in props to any icon component for things like accessibility labels, custom classes, event handlers, and more. For example:
<template>
<Bee32 aria-label="Bee" class="custom-class" v-on:click="handler" />
</template>
Looking to contribute? You should start here!
FAQs
Vue components for icons in digital and software products using the Carbon Design System
The npm package @carbon/icons-vue receives a total of 5,090 weekly downloads. As such, @carbon/icons-vue popularity was classified as popular.
We found that @carbon/icons-vue 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.