@hyperpackai/hypericons-core
v0.3.0
Published
HyperIcons core — framework-agnostic SVG icon model, renderer, optimizer, sprite builder, and generator.
Maintainers
Readme
HyperIcons Core
Framework-agnostic SVG icon primitives for HyperIcons.
import { renderIconToSvg } from "@hyperpackai/hypericons-core";
import { AddIconData } from "@hyperpackai/hypericons-icons";
const svg = renderIconToSvg(AddIconData, {
size: 20,
color: "currentColor",
title: "Add item",
ariaLabel: "Add item"
});Core is dependency-free and does not load an icon registry at runtime.
Standards
viewBox:0 0 24 24- default size:
24 - default stroke width:
2 - default color:
currentColor - default fill:
none - accessibility:
title,ariaLabel,aria-hidden, andfocusable=false - output modes: inline SVG, static SVG string, SVG sprite symbol, and sprite
<use>
