Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@navikt/aksel-icons
Advanced tools
800+ open source icons made by Aksel, Nav's design system team.
title
-propIcon
yarn add @navikt/aksel-icons
npm install @navikt/aksel-icons
For previous users of @navikt/ds-icons
, this package utilizes the same API. The only difference is that the icons are suffixed with Icon
to avoid naming conflicts and visual changes to the icons themselves.
import { StarIcon } from "@navikt/aksel-icons";
function App() {
return <StarIcon title="star" fontSize="1.5rem" />;
}
Tip: Use the title
prop for accessible icons.
Each icon's width
and height
is default 1em
. This allows you to use the native fontSize
-prop to adjust sizing. We recommend using at least 1.5rem/24px for the best possible visual representation.
<StarIcon fontSize="1.5rem" />
All icons are available in raw SVG-format behind /svg
. Note that svg-files do not have the suffix Icon
.
import StarIcon from "@navikt/aksel-icons/svg/Star.svg";
If using typescript, TS might complain about not finding types related to the svg-format. Add a *.d.ts
file with this declaration to fix this. (This was copied from next/image-types/global.d.ts since next solves this internally, but should work elsewhere)
declare module "*.svg" {
/**
* Use `any` to avoid conflicts with
* `@svgr/webpack` plugin or
* `babel-plugin-inline-react-svg` plugin.
*/
const content: any;
export default content;
}
FAQs
800+ open source icons made by Aksel, Nav's design system team.
We found that @navikt/aksel-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 17 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.