Icons
2,023 SVG icons across 22 categories, shipped as tree-shakeable React components.
The @unflow-ui/icons package provides over 2,000 icons as individual React components. Each icon is generated from an optimised SVG using SVGR + SVGO, so the resulting components are clean, accessible, and minimal.
Installation
npm install @unflow-ui/iconsImporting icons
Icons are organised into category subdirectories. Import each icon by its category path:
import { CloudFog } from '@unflow-ui/icons/weather-nature/cloud-fog';
import { Google } from '@unflow-ui/icons/social/google';
import { ChevronDown } from '@unflow-ui/icons/arrows/chevron-down';Because each icon is a separate module, only the icons you import end up in your bundle.
Usage
Icons are standard SVG React components. They accept all SVG props:
<CloudFog className="text-grey-500" width={20} height={20} />Inside UnflowUI components, just pass them as ReactNode:
<Button
label="Upload file"
startIcon={<CloudFog />}
variant="secondary"
size="md"
/>Sizing
Icons default to 1em width and height (inheriting from font-size). You can override with Tailwind or inline styles:
<ChevronDown className="w-4 h-4" />
<ChevronDown style={{ width: 16, height: 16 }} />Categories
| Category | Count | Example import |
|---|---|---|
flags | 271 | @unflow-ui/icons/flags/us |
social | 240 | @unflow-ui/icons/social/twitter |
office-editing | 234 | @unflow-ui/icons/office-editing/bold |
maps-travel | 167 | @unflow-ui/icons/maps-travel/pin |
design | 138 | @unflow-ui/icons/design/pen-tool |
arrows | 122 | @unflow-ui/icons/arrows/arrow-right |
math-finance | 116 | @unflow-ui/icons/math-finance/percent |
system-devices | 107 | @unflow-ui/icons/system-devices/monitor |
media | 97 | @unflow-ui/icons/media/play |
communication | 82 | @unflow-ui/icons/communication/message |
weather-nature | 79 | @unflow-ui/icons/weather-nature/sun |
people | 71 | @unflow-ui/icons/people/user |
games | 55 | @unflow-ui/icons/games/gamepad |
commerce | 48 | @unflow-ui/icons/commerce/cart |
security-warnings | 47 | @unflow-ui/icons/security-warnings/shield |
health-wellness | 46 | @unflow-ui/icons/health-wellness/heart |
development | 46 | @unflow-ui/icons/development/code |
time | 27 | @unflow-ui/icons/time/clock |
brands | 21 | @unflow-ui/icons/brands/github |
education | 9 | @unflow-ui/icons/education/book |
Color
Icons inherit their color from CSS currentColor. Set the color via the color CSS property or a Tailwind text utility:
<CloudFog className="text-brand-500" /> /* inherits brand green */
<Google className="text-grey-600" /> /* inherits grey */