Spinner

An indicator that can be used to show a loading state.

Installation

Install the component package, shared coss-svelte theme, and Bits UI peer.

npm install coss-svelte @coss-svelte/theme bits-ui

Usage

Import the Svelte component exports directly from the package.

import { Spinner } from "coss-svelte";

Anatomy

Spinner exposes a single component export for the current implementation.

API Reference

Spinner

An indicator that can be used to show a loading state.

PropTypeDefaultDescription
labelstring""Accessible label or fallback visible label for the control.
children : Snippet<[]>

Inherits from Svelte <span> attributes.

Implementation Details

Status
Stable
Foundation
native
Category
Feedback & Status
Particles
1