Font Awesome Build Awesome
Search ⌘KCtrl+K
Light Dark System Docs Color Scheme: System \ Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Theme: Default Icon Style: Classic Regular
Solid Regular Light Thin Classic Sharp Duotone Sharp Duotone
Docs Most styles require Font Awesome Pro.
Server-Side Rendering: Off Server-Side Rendering Docs
View on GitHub
Start Components Docs Help
Web Awesome Font Awesome Build Awesome
Search this site… /
Light Dark System Docs Color Scheme: System \ Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Theme: Default Icon Style: Classic Regular
Solid Regular Light Thin Classic Sharp Duotone Sharp Duotone
Docs Most styles require Font Awesome Pro.
Server-Side Rendering: Off Server-Side Rendering Docs
View on GitHub
Components

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • Input
  • Known Date
  • Number Input
  • OTP Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Tag Input
  • Textarea
  • Time Input

Layout

  • Accordion
    • Accordion Item
  • Card
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Scroller
  • Split Panel
  • Timeline
    • Timeline Item

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Pagination
  • Stepper
    • Step
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Progress Bar
  • Progress Ring
  • Skeleton
  • Spinner
  • Tag
  • Toast
    • Toast Item
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Code Highlighter
  • Comparison
  • Icon
  • Lightbox
    • Lightbox Item
  • Markdown
  • QR Code
  • Zoomable Frame

Data Viz

  • Advanced Usage

Helpers

  • Animation
  • Counter
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Number Ticker
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Spinner

  • Examples
  • Size
  • Track Width
  • Colors
  • Speed
  • API
  • Importing
  • CSS Custom Properties
  • CSS Parts
On This Page...
  • Examples
  • Size
  • Track Width
  • Colors
  • Speed
  • API
  • Importing
  • CSS Custom Properties
  • CSS Parts

Spinner

<wa-spinner>
Stable Feedback Since 2.0

Spinners indicate that an operation is in progress when the duration is unknown. Use them for loading states where a determinate progress bar isn't practical.

<wa-spinner></wa-spinner>

Examples

Link to This Section

Size

Link to This Section

Spinners are sized based on the current font size. To change the size, set font-size on the spinner itself or on a parent element.

<wa-spinner></wa-spinner>
<wa-spinner style="font-size: 2rem;"></wa-spinner>
<wa-spinner style="font-size: 3rem;"></wa-spinner>

Track Width

Link to This Section

Use the --track-width custom property to change the thickness of the spinner's track.

<wa-spinner style="font-size: 50px; --track-width: 10px;"></wa-spinner>

Colors

Link to This Section

Use the --track-color and --indicator-color custom properties to recolor the spinner.

<wa-spinner style="font-size: 3rem; --indicator-color: var(--wa-color-success-fill-loud); --track-color: var(--wa-color-success-fill-quiet);"></wa-spinner>

Speed

Link to This Section

Use the --speed custom property to set how long one full rotation takes.

<wa-spinner style="font-size: 3rem; --speed: 4s;"></wa-spinner>

API

Link to This Section

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/spinner/spinner.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/spinner/spinner.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/spinner/spinner.js';

To import this component for React 18 or below, use the following code:

import WaSpinner from '@awesome.me/webawesome/dist/react/spinner/index.js';

CSS Custom Properties

Link to This Section

Learn more about CSS custom properties.

Name Description
--indicator-color
The color of the spinner's indicator.
--speed
The time it takes for the spinner to complete one animation cycle.
--track-color
The color of the track.
--track-width
The width of the track.

CSS Parts

Link to This Section

Learn more about CSS parts.

Name Description CSS selector
spinner The component's outer wrapper. ::part(spinner)
base Deprecated. Use the spinner part instead. ::part(base)
Need a hand? Report a bug Ask for help
Go Make Something Awesome
Version 3.15.0 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc