TidalUI

Spinner preview

A compact loading indicator with an optional visible label.

free · Feedback · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add https://tidalui.com/r/spinner.json

Import components/ui/tidal.css, components/ui/spinner.css. Wrap installed components in tidal-scope.

Preview

Spinner component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/spinner.css";
import{TidalSpinner}from"./components/ui/spinner";
export default()=><div className="tidal-scope"><TidalSpinner decorative/></div>;

API and props

TidalSpinner.decorative
boolean | undefined

Optional decorative value accepted by this exported component.

TidalSpinner.label
string | undefined

Optional label value accepted by this exported component.

TidalSpinner.labelVisible
boolean | undefined

Optional label visible value accepted by this exported component.

TidalSpinner.paused
boolean | undefined

Optional paused value accepted by this exported component.

TidalSpinner.size
"sm" | "md" | "lg" | undefined

Optional size value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas