Spin

A loading spinner for indicating content is being fetched or processed.

When to Use

  • To indicate a loading state for a section or the entire page
  • As an overlay on content that is being refreshed
  • For async operations in progress

Import

import { Spin } from "orizon";

Examples

Basic

<Spin />

Sizes

<Spin size="small" />
<Spin size="default" />
<Spin size="large" />

With Tip

Content area

Loading...
<Spin tip="Loading...">
  <div>Content area</div>
</Spin>

Fullscreen

<Spin fullscreen tip="Loading application..." />

API

SpinProps

  • spinningboolean — Whether to show spinner (default: true)
  • size"small" | "default" | "large" — Spinner size (default: "default")
  • delaynumber — Delay before showing (ms), prevents flicker
  • indicatorReactNode — Custom spinner element
  • tipReactNode — Loading text
  • descriptionReactNode — Description below tip
  • fullscreenboolean — Cover the entire viewport (default: false)
  • percentnumber | "auto" — Progress percentage