No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Spinner

A spinner indicates that a part of the product is currently performing a task, and the duration of this process is unknown.

usage
import { Spinner } from "@sharegate/orbit-ui";
sources
Github

Guidelines

When to use

  • To notify users that an action is in progress.

Accessibility

  • The spinner component has a role of status by default. When inside a parent component that is focusable, the spinner should have a role of presentation to prevent the screen reader from reading the spinner.
  • The parent component should have a aria-busy attribute set to true when the spinner is visible.
  • The parent component should have a aria-live attribute set to polite.

Spinner vs Loader

  • Use the spinner component insider another component. When the whole page is waiting for data, use a loader instead.

Usage

Default

A simple spinner.

Editable example

Size

A spinner can vary in size.

Editable example

Label

A spinner can have a label.

Loading...
Loading...
Loading...
Editable example

Over background

You can change a spinner style when over a background by setting a color property on the spinner.

Loading...
Editable example

API

Spinner

usage
import { Spinner } from "@sharegate/orbit-ui";
NameDescriptionDefault
size
A spinner can vary in size.
"sm" | "md" | "lg" | ResponsiveValue<"sm" | "md" | "lg">
md