fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphTicker

A single rotating row of health tokens such as `[ OK ] api`, each keeping its own status colour.

Install

GraphTicker is a Svelte 5 animated ASCII ticker 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 { GraphTicker } from '@fractaldesign/machines-ui';

Usage

Example
<GraphTicker
  title="FLEET"
  items={[
    { label: 'api', status: 'ok' },
    { label: 'db-lag 2.1s', status: 'warn' },
    { label: 'edge-eu', status: 'down' }
  ]}
/>

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
items TickerItem[] Tokens rotated through the row, in order.—
speedMs number Milliseconds per rotation step. Default 140.140
animated boolean Animate the rotation. Default true. Reduced motion shows the first items.true
corner string Character at each corner of the frame. Default '+'.—
class string ''