
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@lil-icons/vue
Advanced tools
npm install @lil-icons/vue
or
yarn add @lil-icons/vue
<template>
<div id="app">
<LilIconsProvider>
...
</LilIconsProvider>
</div>
</template>
<script>
import { LilIconsProvider } from '@lil-icons/vue';
export default {
name: 'app',
components: {
LilIconsProvider,
},
};
</script>
<template>
<div>
<IconSuccess />
...
</div>
</template>
<script>
import { IconSuccess } from '@lil-icons/vue';
export default {
name: 'MyComponent',
components: {
IconSuccess,
},
};
</script>
You can declare props once in LilIconsProvider and they will be passed down to all the icons. It uses provide/inject API:
<LilIconsProvider color="green" width={64} height={64}>
<IconSuccess /> // green 64x64
</LilIconsProvider>
Icon props have a higher priority than provider props:
<LilIconsProvider color="green">
<IconSuccess color="red" /> // red
</LilIconsProvider>
You can inject values from provider in your custom components:
<script>
export default {
name: 'MyCustomIcon',
inject: ['lilIconsColor', 'lilIconsWidth', 'lilIconsHeight'],
};
</script>
);
Prop | Type | Required |
---|---|---|
color | String | No |
width | String or Number | No |
height | String or Number | No |
FAQs
SVG icons components for Vue
We found that @lil-icons/vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.