@port-labs/anchor-icons
v0.0.2
Published
Port UI Icons
Keywords
Readme
@port-labs/anchor-icons
Icon set for Port's Anchor UI design system, shipped as ready-to-use React components.
Icons are pre-compiled to React components at build time, so the package works in any React 19 bundler (Vite, Next.js, webpack, Remix, esbuild) — no vite-plugin-svgr or other bundler plugin required in the consuming app.
Install
npm install @port-labs/anchor-icons
# peer deps
npm install react react-domUsage
import { Add, GithubActions } from '@port-labs/anchor-icons';
export function Toolbar() {
return (
<button>
<Add />
Add resource
</button>
);
}Each icon is a standard SVG React component:
- Renders at
1emso it scales with the surroundingfont-size. - Monochrome icons use
fill="currentColor", so they inherit the CSScolorof their container. Brand/product icons keep their own colors. - Accepts every
SVGProps<SVGSVGElement>(className,style,color,width,height,onClick, …) and forwardsrefto the underlying<svg>. - Defaults to
aria-hidden="true"; passaria-hidden={false}and atitle/aria-labelfor a meaningful, announced icon.
<Add className="text-blue-500" width={24} height={24} />Peer dependencies
| Package | Range |
| ----------- | --------- |
| react | ^19.0.0 |
| react-dom | ^19.0.0 |
License
ISC.
