fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphSpinners

A framed text spinner with built-in or custom frames and an optional loading label.

Install

GraphSpinners is a Svelte 5 animated ASCII spinners component in @fractaldesign/machines-ui. It works in SvelteKit and in any Svelte 5 app.

pnpm add @fractaldesign/machines-ui

Import

import
import '@fractaldesign/machines-ui/style.css';
import { GraphSpinners } from '@fractaldesign/machines-ui';

Usage

Example
<GraphSpinners title="FETCH" kind="bounce" label="loading tiles" speedMs={90} />

Props

NameTypeDefault
title string Caption drawn on the frame's top edge as `[ TITLE ]`.—
kind SpinnerKind Which glyph spinner to show. Default 'dots'.'dots'
label string Text shown after the spinner. Default 'loading'.'loading'
speedMs number Milliseconds per frame. Default 120.120
frames string[] Custom frame set. Overrides `kind` when non-empty. Padded to equal width.—
animated boolean Animate the frames. Default true. Reduced motion holds frame 0.true
corner string Character at each corner of the frame. Default '+'.—
class string ''