Every icon behind one `Icon` component chosen by name, for the places where the name is data (a toolbar built from config). It depends on every icon package, so importing it loads the whole set.

pnpm add @behivetech/icons.all
  • icon

Every icon behind one Icon component chosen by name, for the places where the name is data (a toolbar built from config). It depends on every icon package, so importing it loads the whole set.

Usage

Open in new tab

Where the icon is known when you write the code, import that icon's own package (@behivetech/icons.trash) and load one glyph instead of the set. Its names are those of the icon packages; the list is refreshed whenever pnpm gen icon adds one.

Properties

Icon props

PropTypeDefaultDescription
name*enum—Which icon to render
classNamestring—Additional class names to merge with the component root element
refRef<SVGSVGElement>—Ref to the root svg element
size"sm" | "md" | "lg" | "xl"—Controls width/height; defaults to md
titleAccessstring—Accessible name of the icon, rendered as the svg's `<title>`. When set the icon is exposed as an image with this name; without it (and without `aria-label` or `aria-labelledby`) the icon is decorative and hidden from assistive technology. Pass an already translated string.

Also accepts the native attributes of its root element (className, aria-*, event handlers, …).