Skip to content
Stylhero 0.6.2
React Native

Theme

Core

Feedback

Inputs

Navigation

Overlays

React Native / Feedback

Spinner

Themed loading indicator, announced as a busy progress bar named by label.

import { Spinner } from "@stylhero/native";

Example

import { Spinner } from "@stylhero/native";

function SpinnerExample() {
  return <Spinner label="Loading prices" showLabel />;
}

Props

PropTypeDefaultDescription
label string "Loading" What is loading, read by screen readers. Default "Loading".
showLabel boolean - Also show the label as text next to the spinner, e.g. "Loading your builds…". Spinner and text are still read as one element.
size "small" | "large" - "small" (20pt) or "large" (36pt). Default "large", or "small" with showLabel.
style StyleProp<ViewStyle> -
testID string -
tone "primary" | "muted" | "onPrimary" "primary" "primary" (default), "muted", or "onPrimary" for use on a primary surface.

Accessibility

  • A progress bar named by label ("Loading" by default), so screen readers say what's loading. The spinning icon itself is hidden.

Generated from src/components/Spinner.tsx. Something wrong or missing? Open an issue.