Skip to content
synccn

Spinner

Eight-bar loading indicator.

Playground

Change the props and copy the code. The controls come from the component's TypeScript types.

Props

size20
import { Spinner } from "@/components/ui/skeleton";<Spinner />

Installation

$ pnpm dlx shadcn@latest add @synccn/spinner

First time in this project? Connect synccn with one command.

Usage

import { Spinner } from "@/components/ui/skeleton";<Spinner size={20} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

  • size
    number

    Default 20

    Size in pixels.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA roles: status
  • ARIA attributes: aria-label
  • Announces changes to screen readers