Icon Chip

Frames an icon so card and section headers match.

@paneui/theme@base-ui/reactclass-variance-authority
  • Deploy started

    web-app@a41f2c on production

  • Summary ready

    3 action items from standup

  • Checks passed

    142 tests in 48s

  • Quota at 92%

    Raise the limit before Friday

Installation

pnpm dlx shadcn@latest add @paneui/icon-chip

Usage

Examples

Tones

Sizes

Card Header

Accessibility

The chip is always aria-hidden, so it is decoration only. Put the meaning in the text next to it.

API Reference

IconChip

A small rounded frame that holds one icon. Also accepts every prop of span.

tone= "neutral"
"neutral" | "primary" | "success" | "warning" | "destructive" | "solid"
Surface and icon color.
size= "default"
"sm" | "default" | "lg" | "xl"
Chip size (24 / 32 / 40 / 48px); the icon scales with it.
render
ReactElement | (props, state) => ReactElement
Replace the rendered <span> with another element.
PropTypeDefaultDescription
tone"neutral" | "primary" | "success" | "warning" | "destructive" | "solid""neutral"Surface and icon color.
size"sm" | "default" | "lg" | "xl""default"Chip size (24 / 32 / 40 / 48px); the icon scales with it.
renderReactElement | (props, state) => ReactElement—Replace the rendered <span> with another element.

iconChipVariants

The cva function behind IconChip, for styling other elements like a chip.

tone
same as IconChip
size
same as IconChip
PropTypeDefaultDescription
tonesame as IconChip—
sizesame as IconChip—