Spinner
An indicator that can be used to show a loading state.
<script lang="ts">
import { Spinner } from "coss-svelte";
</script>
<Spinner />
Installation
Install the component package, shared coss-svelte theme, and Bits UI peer.
npm install coss-svelte @coss-svelte/theme bits-uiUsage
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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "" | 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