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.
abaabil.icon
Advanced tools
The Icon
component is a lightweight and flexible SVG icon component for React applications. It allows you to easily include icons in your application using a centralized sprite sheet, ensuring a consistent and efficient way to manage your iconography.
You can install the Icon
component using npm:
npm install abaabil.icon
string
string
'df'
'cp'
, 'df'
, 'sp'
'cp'
: Small size (w-4 h-4
)'df'
: Base size (w-6 h-6
)'sp'
: Large size (w-8 h-8
)string
string
aria-hidden
attribute is automatically set to false
.boolean
true
(when no aria-label
is provided)aria-hidden="true"
), but if an aria-label
is provided, this attribute is automatically set to false
.Decorative Icons: If the icon is purely decorative and does not convey any meaningful content, the aria-hidden="true"
attribute is applied by default. This ensures that screen readers ignore the icon, improving the overall accessibility experience.
Informative Icons: If the icon conveys important information (such as an error or success indicator), provide an aria-label
prop to describe the icon. This makes the icon accessible to users relying on screen readers, ensuring that they receive the same information as sighted users.
<Icon id="checkmark" />
In this example, the icon is decorative and does not require any additional accessibility features. The aria-hidden="true"
attribute is applied by default.
aria-label
)<Icon id="checkmark" aria-label="Success" />
Here, the icon represents a "Success" status and therefore includes an aria-label
. This makes the icon accessible to screen readers, ensuring that users are informed about the icon's meaning.
<Icon id="alert" size="sp" className="text-red-500" />
This example shows how to render a large icon with custom styling applied via the className
prop. The icon will have a large size and be colored red using Tailwind CSS utilities.
aria-label
for informative icons to ensure that their meaning is conveyed to users who rely on screen readers.aria-hidden="true"
so they do not clutter the screen reader experience.size
prop to ensure a cohesive visual design throughout your application.FAQs
Unknown package
We found that abaabil.icon 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.