components

Icon

Every icon in the design system renders through this one component — name looks up the bitmap in the glyph catalog rather than each icon being its own component. Fixed 18×18 viewBox (a 9×9 bitmap at 2 units a cell), size in three steps — s 9px, m 18px, l 27px, whole multiples of the grid so the bitmap stays crisp — and fill inherited from currentColor so an icon always matches its surrounding text. See the Icons guide for the full catalog.

tsx
<Icon name="check" />
name
size

Examples

Fill always comes from currentColor, so pairing an icon with text just means putting both inside the same colored wrapper — no separate color prop on Icon itself to keep in sync:

tsx
Something went wrong
<Text color="strong">
  <Icon name="warning" size="s" /> Something went wrong
</Text>

Most controls that need an icon (Button, IconButton, Input) take an IconName on their own icon prop rather than a rendered <Icon> child — reach for <Icon> directly only when there's no such prop to use, e.g. inline in prose or next to plain text.

Need a glyph that isn't in this catalog? See ExternalIcon for loading one from react-icons (or any similarly-shaped icon set) instead.

Props

PropTypeDefaultDescription
classNametext——
name *function | grid | warning | palette | chevron-down | chevron-up | chevron-left | chevron-right | close | check | plus | minus | search | arrow-right | arrow-left | menu | info | circle | eye | eye-off | trash | edit | copy | download | upload | external-link | star | calendar | clock | user | settings | filter | more-horizontal | refresh | lock | maximize | minimize | home | list | layers | sliders | bell | pin | link | globe | power | hash | at | chat | users | user-plus | user-minus | crown | shield | ban | mute | volume | mic | smile | image | file | folder | code | terminal | bot | sparkle | zap | coin | gift | cart | trophy | gamepad | dice | chart | flag | heart | bookmark | play | pause | stop | sun | moon | unlock | send | inbox | arrow-up | arrow-down | more-vertical | sort | login | logout | key | mail | reply | share | undo | redo | save | clipboard | archive | tag | ticket | wallet | percent | help | alert | check-circle | x-circle | plus-circle | bell-off | megaphone | thumbs-up | thumbs-down | camera | video | music | headphones | server | database | cloud | wifi | cpu | activity | trending-up | trending-down | pie-chart | target | rocket | fire | hourglass | compass | slash-command | id-card | grip | sidebar | git-branch | git-commit | git-merge | git-pull-request | git-fork | git-compare | issue | bug | package | braces | brackets | text-cursor | webhook | plug | puzzle | wrench | hammer | file-code | file-diff | diff | cloud-upload | cloud-download | container | flask | workflow | keyboard | monitor | laptop | smartphone | hard-drive | network | command——
sizel | m | s"m"—
stylereadonly——
titletext—Accessible name. Omit for a purely decorative icon (it's hidden from AT).