Components · Labels & Badges
Icon Chip
AlphaAdded v10.3.0
An icon on a tinted tile, in one of the category colours or the product accent.
import { IconChip } from '@nexub/react';Playground
Props
size
shape
<IconChip category="violet">…</IconChip>Examples
Default
Category colours
Sizes and shapes
States
defaultsize="sm"size="md"size="lg"
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| category | 'accent' | 'blue' | 'amber' | 'emerald' | 'pink' | 'violet' | 'cyan' | 'red' | 'lime' | — | Colour of the chip. accent is the product accent. Without it the chip is neutral. |
| size | 'sm' | 'md' | 'lg' | 'md' | Size of the tile and its icon. |
| shape | 'circle' | 'square' | 'square' | Rounded square or circle. |
On iOS & Android: IconChip
@nexub/react-nativeAlpha
import { IconChip } from '@nexub/react-native';
<IconChip category="emerald"><Wallet /></IconChip>Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Icon | Any child; an SVG is sized by the chip. | One icon element; it takes the chip's colour and size unless it sets its own. |
| Accessible name | aria-label. | accessibilityLabel. Without it the chip is hidden from screen readers. |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
IconChip props
| Prop | Type | Default | Description |
|---|---|---|---|
| category | CategoryColor | — | Colour of the chip. 'accent' is the product's spot accent. Without it the chip is neutral. |
| size | 'sm' | 'md' | 'lg' | 'md' | — |
| shape | 'square' | 'circle' | 'square' | — |
| childrenrequired | React.ReactNode | — | One icon element, e.g. <Wallet />. It takes the chip's colour and size unless it sets its own. |