@wasd/design-system-icon
v0.6.0
Published
Tokenized SVG icon component for WASD design-system packages.
Readme
Icon
Tokenized SVG icon component for WASD design-system packages.
import { WASIcon } from "@wasd/design-system-icon/react";
import { IconName } from "@wasd/design-system-icon";
<WASIcon name={IconName.Search} label="Search" />Icon names, tones, sizes, stroke weights, and animations are exported as literal const maps plus typed value arrays for framework validators.
IconName.LoadingSpinner declares IconAnimation.Spin as its automatic animation. Pass animation="none" to render it statically, or use animation="spin" / animation="pulse" to animate another glyph such as IconName.Heart.
