Foundations
Icons
257 icons drawn from Lucide (ISC), rendered with <Icon name="…" />. The 80 portable names work in every KrackedUI system.
These names are part of the KrackedUI contract: code that uses them works with any system.
Use it to:
- reinforce a label in buttons, menus and navigation
- show a status next to text
Don’t use it to:
- replace text for uncommon actions
- draw illustrations (icons are 24×24 strokes)
Install the package (React 19):
npm install @krackedui/motion
pnpm add @krackedui/motion
yarn add @krackedui/motion
Import the styles once, in your app entry or root layout:
Without label an icon is hidden from assistive tech; with it, it is an image with that name.
An inline <svg> (stroke = currentColor); supports all SVG props.
| Prop | Type | Default |
|---|
| IconName
| |
| number
| 20
|
| string
| |
- Icons are decorative by default. Give
label only when the icon means something on its own (a status icon without text). - Icon-only controls get their name from the control (IconButton
label), not the icon. - Icons inherit the text color; meaningful icons need 3:1 contrast against the background.
© 2026 Motion. Internal documentation.