Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Loader

Preview

LoadingSpinner
LoadingDots
LoadingBars
LoadingDot Matrix
LoadingDither
LoadingLoadingMorph
LoadingComet
LoadingLoadingMetaballs
LoadingNewton
LoadingHelix
LoadingScramble
LoadingPercent
LoadingASCII
LoadingASCII Line
LoadingASCII Braille
LoadingASCII Blocks
LoadingASCII Bounce

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/loader

Import the shared styles once in your application.

TSUsage
import Loader from '@/components/beui/layout/Loader.vue'
import '@/components/beui/styles.css'

API Reference

variant?
LoaderVariant

Which animation to render.

Defaultspinner
size?
number

Base square size in px. Everything scales from this.

Default32
speed?
number

Seconds per animation cycle.

Default1
label?
string

Accessible label announced to screen readers.

Default—
labels?
Partial<LoaderMessages>

Override any built-in string.

Default—
class?
string
Default—
scramble?
string

The word the `scramble` variant resolves to.

Default—
paused?
boolean

Freeze the animation in place.

Defaultfalse
Also on React Native. Seventeen indicators from one size prop.(opens in a new tab)

Updated