@reactloom/icons
v1.3.0
Published
100 stroke-based React icons for ReactLoom: inherit currentColor, size with the text, mirror in right-to-left layouts and work in React Server Components. Tree-shakable, about 0.4 kB each.
Maintainers
Readme
@reactloom/icons
100 line icons for React, drawn on one 24-unit grid with 2-unit round strokes.
pnpm add @reactloom/iconsimport { ArrowRightIcon, CheckCircleIcon, TrashIcon } from '@reactloom/icons';
<button><TrashIcon /> Delete</button> // decorative: aria-hidden
<CheckCircleIcon label="Synced" /> // meaningful on its own: role="img"
<a href="/next">Next <ArrowRightIcon /></a> // directional: flips when dir="rtl"- Size and colour follow the text:
1emandcurrentColorby default;size,className,style,refand SVG props pass through. - Right-to-left: directional icons (arrows, chevrons, undo/redo, send…) flip using the
--pl-dirvariable from@reactloom/theme. Override withmirrored={false}ormirrored. - Server Components: icons use no hooks and need no
'use client'. - Tree-shakable: one icon is about 0.4 kB, the whole set about 4 kB (brotli), checked in CI.
- Your own icons:
createIcon('RocketIcon', <path d="…" />, { directional?: boolean }). - Picker data:
iconCataloglists every icon's name, category and whether it is directional.
Documentation and the searchable gallery: https://www.reactloom.dev/docs/icons
MIT licensed. The drawings are original to ReactLoom.
