Knit UI
GitHub

Playground

Loading playground…

Playground
<Loader
  type="oval"
  size="md"
/>

Examples

Types

All three loader types side by side at the default size.

Loading example…

TypesSourceStorybook

Sizes

The seven size keys, from xxs to xxl, using the default oval type.

Loading example…

SizesSourceStorybook

Shadows

The inherited shadow elevation prop, from xs to xl.

Loading example…

ShadowsSourceStorybook

Custom Size

An explicit pixel size — useful when the preset keys don't match a specific layout.

Loading example…

Custom SizeSourceStorybook

Themed

The palette ramp follows the active theme — same component, different accent.

Loading example…

ThemedSourceStorybook

Custom Label

Custom accessibility label — overrides the default "Loading" for screen readers.

Loading example…

Custom LabelSourceStorybook

Matrix

Full type × size matrix for visual regression.

Loading example…

MatrixSourceStorybook

Props

PropTypeDefaultDescription
aria-labelstring | undefined"Loading"Accessible label read by screen readers. Defaults to "Loading".
disabled systemboolean | undefined
role"progressbar" | undefined"progressbar"Semantic progress role.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
size systemnumber | "xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
xxs · xs · sm · md · lg · xl · xxl
"md"Size key (xxs–xxl) or an explicit pixel number.
theme systemThemeName | null | undefined
unset · blue · red · green · yellow · pink · gray
Active theme accent — recolors the loader via the palette ramp.
typeLoaderType | undefined
oval · dots · bars
"oval"Loader rendition — spinning ring, pulsing dots, or rising bars.
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 496 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.