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.
akar-icons-web-components
Advanced tools
AkarIcons Web Components is a non-official Web Components wrapper for the amazing AkarIcons.
Also a handy icon framework for dynamically customizable icons.
stroke-width
and line-style
ON THE FLY? 🤯Read more about the design philosophies in this article! 📄
<script src="https://cdn.jsdelivr.net/npm/akar-icons-web-components" type="module"></script>
<body>
<akar-icon name="bicycle">
</body>
And voilà, the icon is ready.
Play around with the CodePen.
Note on the top right corner of the CodePen, there is a dropdown menu. Open and have fun with it.
Value for the
name
field can be copied from AkarIcons homepage without theai-
prefix, eg.arrow-left
Everything the menu changes, is simply attributes for the <akar-icon>
tag.
So <akar-icon name="air" size="50">
will be rendered as a 50px ✕ 50px AkarIcons air icon.
Attributes
Attribute | Type | Css Var | Default |
---|---|---|---|
name | string | (Required) | |
size | number | --size | 24 |
color | string | color | "inherit" |
stroke | number | --stroke | 1 |
cap | enum | --cap | "round" |
join | enum | --join | "round" |
Try the following examples:
<akar-icon name="bicycle" size="50" cap="butt" join="miter"/> </akar-icon>
<akar-icon name="air" stroke="2" style="transform: scaleX(-1)"/> </akar-icon>
Or set a universal style for all <akar-icon>
s:
<style>
akar-icon {
--cap: butt;
}
</style>
And yes, it's that simple! 😇
0.1/0.2
Sep 19, 2021. First commit!git clone git@github.com:awmleer/akar-icons-web-components.git
yarn run start
MIT License, Copyright © 2021-present @awmleer and @John-Theo.
FAQs
Akar icons as web components.
We found that akar-icons-web-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.