Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@dile/icons
Advanced tools
This package contains some useful icons and a style declaration to customize the size and the icon color.
Import the icon you need:
import { infoIcon } from '@dile/icons';
Use the icon in a Lit template:
render() {
return html`
// Your component template
${ infoIcon }
`;
}
To create the icon styles easily you may use the CSS declaration provided in this package.
import { iconStyles } from '@dile/icons';
Then, you can use the style declaration in your Lit component:
static get styles() {
return [iconStyles, css`
:host {
--dile-icon-color: #fce;
}
`];
}
You can customize it using CSS Custom Properties.
Custom property | Description | Default |
---|---|---|
--dile-icon-size | Icon size | 24px |
--dile-icon-color | Icon color | #888 |
FAQs
Some SVG icons to use in web components.
The npm package @dile/icons receives a total of 204 weekly downloads. As such, @dile/icons popularity was classified as not popular.
We found that @dile/icons 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.