Knit UI
GitHub

Playground

Loading playground…

Playground
<ThemeIcon
  variant="filled"
  size="md"
>
  <IconStar />
</ThemeIcon>

Examples

Variants

Every visual variant side by side.

Loading example…

VariantsSourceStorybook

Sizes

The five sizes, from xs to xl.

Loading example…

SizesSourceStorybook

Shadows

Each elevation level from the shared shadow ladder.

Loading example…

ShadowsSourceStorybook

Themed

The palette ramp follows the active theme.

Loading example…

ThemedSourceStorybook

Gradient

variant="gradient" fills the chip with a linear gradient. With no gradient prop it falls back to the theme ramp; otherwise pass a two-color shorthand, $colorN tokens, or a multi-step stops array. The icon auto-colors white.

Loading example…

GradientSourceStorybook

Gradient Presets

A set of curated gradient presets — handy starting points.

Loading example…

Gradient PresetsSourceStorybook

Gradient Themed

variant="gradient" with no gradient prop derives the gradient from each theme.

Loading example…

Gradient ThemedSourceStorybook

Gradient Sizes

One gradient (Sunset) across the full size scale.

Loading example…

Gradient SizesSourceStorybook

Props

PropTypeDefaultDescription
childrenReactNodeThe icon to render. A bare `@knitui/icons` icon auto-sizes/colors to the chip.
disabled systemboolean | undefined
gradient systemGradientValue | undefinedGradient fill for variant='gradient' — { from, to, deg } or { stops, deg }.
radius systemstring | number | undefinedTheme radius token (e.g. `$sm`) or any CSS value.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
unset · xs · sm · md · lg · xl
Elevation — drop shadow from the shared ladder.
size systemstring | number | undefined
xs · sm · md · lg · xl
mdControls the square width/height and radius.
theme systemThemeName | null | undefined
unset · blue · red · green · yellow · pink
Applies a theme to this element
variant system"light" | "outline" | "white" | "transparent" | "default" | "filled" | "subtle" | "gradient" | undefined
filled · light · outline · subtle · transparent · white · default · gradient
filledVisual variant — how the theme color ramp is applied.
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 497 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.