# LoadingWheel — SvelteKit UI

Package: sveltekit-ui 1.1.94

Page: https://www.sveltekit-ui.com/components/loading_wheel

Category: Feedback

A circular spinner component to indicate loading or processing states. It's lightweight and customizable for various layouts and use cases.

Public component import: `LoadingWheel`

## Usage

```svelte
<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { LoadingWheel } from "sveltekit-ui"
</script>

<div style="display: flex; align-items: center; gap: 1rem;">
  <LoadingWheel size={2} aria_label="Loading projects" />
  <span>Loading projects…</span>
</div>
```

## Properties

### `size`

- type: number
- default: null
- description: Diameter of the loader in rem. If not set, it takes the container's full width.

### `sw`

- type: number
- default: 0.3
- description: Stroke width of the loader's border in rem.

### `color`

- type: string
- default: var(--shadow8-t)
- description: Color of the loader's animated segment.

### `color_bg`

- type: string
- default: var(--tint8-t)
- description: Background color of the loader's static segment.
