Knit UI
GitHub

Playground

Loading playground…

true
Playground
<LoadingOverlay
  visible
  zIndex={400}
/>

Examples

Hidden

Demonstrates the default hidden state — nothing is rendered when visible is false.

Loading example…

HiddenSourceStorybook

Controlled

Controlled toggle — use the button to show and hide the overlay.

Loading example…

ControlledSourceStorybook

Loader Types

All three loader types — oval (spinning ring), dots, and bars — side by side.

Loading example…

Loader TypesSourceStorybook

Loader Sizes

The full loader size scale swept across a fixed container.

Loading example…

Loader SizesSourceStorybook

Shadows

The inherited shadow elevation prop, from xs to xl.

Loading example…

ShadowsSourceStorybook

Dark Scrim

Custom scrim — dark background at higher opacity to show how overlayProps affect the wash.

Loading example…

Dark ScrimSourceStorybook

Blurred Scrim

Blurred scrim — applies a backdrop blur for a frosted-glass effect (web only).

Loading example…

Blurred ScrimSourceStorybook

Styles

Per-slot styles targets individual parts — here the overlay scrim and the loader.

Loading example…

StylesSourceStorybook

Themed

Themed loader — the loader accent follows the active theme color ramp.

Loading example…

ThemedSourceStorybook

Props

PropTypeDefaultDescription
backgroundColorOpaqueColorValue | GetThemeValueForKey<"backgroundColor"> | undefined"#000"Scrim base background (a literal wash color, not a theme accent).
backgroundOpacitynumber | undefined0.6Scrim `background-color` opacity 0–1, ignored when `gradient` is set.
blurstring | number | undefined0Web-only background blur in px (`backdrop-filter`); no-op on native.
disabled systemboolean | undefined
fixedboolean | undefinedfalseSwitch from `absolute` (parent-relative) to `fixed` (viewport-relative).
gradient systemstring | undefinedWeb-only CSS gradient; when set, `backgroundColor`/`backgroundOpacity` are ignored.
loaderPropsLoadingOverlayLoaderStyle | undefined
overlayPropsLoadingOverlayOverlayStyle | undefined
radius systemstring | number | undefined
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
styles systemSlotStyles<LoadingOverlayStyles> | undefinedPer-slot style sugar — props spread onto the matching styled part.
theme systemThemeName | null | undefinedApplies a theme to this element
visibleboolean | undefinedfalseMount the overlay when true; renders nothing when false.

Style slots

Every part of LoadingOverlay can be styled through the styles prop. Explicit props on the component always win over slot styles.

SlotUsage
loaderstyles={{ loader: { … } }}
overlaystyles={{ overlay: { … } }}
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

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