@pcoi/icons
v2.0.0
Published
PCOI Design System — SVG icon library (auto-generated React components).
Readme
@pcoi/icons
SVG icon library for the PCOI Design System: 32 icons, each drawn at 4 sizes (12 / 16 / 24 / 32 px), exported as React components. The components are auto-generated from the audited PCOI Figma icon set — the package contents are a build artifact of that pipeline, not hand-edited SVG.
Install
npm install @pcoi/iconsReact >=18 is a peer dependency; TypeScript consumers need @types/react 18.3 or later (the published type definitions reference the JSX export added in 18.3).
Usage
import { IconCheck, IconSearch } from "@pcoi/icons";
<IconCheck /> // 16px, currentColor
<IconSearch size={24} /> // any of 12 | 16 | 24 | 32
<IconCheck title="Selected" /> // exposed to assistive techsize(default16) picks the size-specific drawing (not a scaled render) — each size is its own Figma master.- Color follows
currentColor; set CSScoloron the icon or a parent. - Accessibility: icons are
aria-hiddenby default (decorative). Passtitleto make one meaningful — it renders a<title>element and labels the SVG. - Refs forward to the underlying
<svg>. - Unused icons tree-shake away; importing one icon does not ship all 32.
The full catalog (names + all sizes) is browsable in the PCOI Storybook.
License
MIT
