Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@devtools-ds/icon
Advanced tools
A set of React-packaged SVG icons commonly used in developer tools.
npm i @devtools-ds/icon
# or with yarn
yarn add @devtools-ds/icon
By default, all icons are set to aria-hidden
and focusable="false"
in order to hide them from screen readers and stop focus on Microsoft browsers. Most of the time, these icons will be accompanied by text which should properly label them. If your icon is being used as a button, wrap it in a button component with the proper labeling instead of labeling the icon.
Icons are packaged as individual React components.
import { AlertIcon } from "@devtools-ds/icon";
// individual icon
<AlertIcon />;
There are three ways to size the icons: a size prop, inline, or with width and height. I've included an example of each below.
import { AlertIcon } from '@devtools-ds/icon';
// This will resize based on the four preset icon sizes used in the design system.
<AlertIcon size="large"/>
// This will inherit the fontSize attribute in order to work inline with text.
<AlertIcon inline />
// This will resize using normal SVG resize controls
<AlertIcon width="30px" />
The inline prop makes the icon inherit the fontSize css attribute, and position itself inline with text around it. By default, the icon has fill="currentColor"
set based on the currentColor css attribute. This will inherit the surrounding font color, but can be overwritten as needed.
Thanks goes to these wonderful people (emoji key):
Tyler Krupicka 💻 📖 🎨 🚇 💡 ⚠️ | Adam Dierkens 💻 | kharrop 🎨 |
This project follows the all-contributors specification. Contributions of any kind welcome!
v1.0.2 (Mon Feb 15 2021)
@devtools-ds/navigation
, @devtools-ds/table
, @devtools-ds/tree
@devtools-ds/console
, @devtools-ds/dom-inspector
, @devtools-ds/diagnostic
, @devtools-ds/icon
, @devtools-ds/navigation
, @devtools-ds/node
, @devtools-ds/object-inspector
, @devtools-ds/table
, @devtools-ds/tree
FAQs
A set of React-packaged SVG icons commonly used in developer tools.
The npm package @devtools-ds/icon receives a total of 67 weekly downloads. As such, @devtools-ds/icon popularity was classified as not popular.
We found that @devtools-ds/icon 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
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.