Skip to content
synccn

Loaders

New

Six loading indicators: dots, bars, pulse, ring, orbit and typing.

dots
bars
pulse
ring
orbit
typing

Playground

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

Props

variant
size24
import { Loader } from "@/components/ui/loaders";<Loader />

Installation

$ pnpm dlx shadcn@latest add @synccn/loaders

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

Usage

import { Loader } from "@/components/ui/loaders";<Loader variant="dots" />

API reference

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

Loader

Loading indicators. variant: "dots" | "bars" | "pulse" | "ring" | "orbit" | "typing"

  • variant
    "dots" | "bars" | "pulse" | "ring" | "orbit" | "typing"

    Default "dots"

    Animation style.

  • size
    number

    Default 24

    Size in pixels.

  • label
    string

    Default "Loading"

    Accessible label.

  • 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

  • Each loader is a status region with a label (default "Loading").

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
  • Keys handled: Enter, Space
  • Respects the reduced motion setting
  • Announces changes to screen readers