fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphDiya

A row of diyas that light one by one and then breathe, drawn as character-art candle flames over a dark gutter; purely decorative.

Install

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

Usage

Example
<GraphDiya title="DIWALI" lamps={5} />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the lighting and the breathing. Default true. Reduced motion freezes a fully lit row.true
cols number Width of the scene in characters. Default 60.60
rows number Height of the scene in rows. Default 14.14
lamps number Number of diyas in the row. Default 5.5
speedMs number Milliseconds per tick. Default 110.110
seedNum number Seed for the per-lamp phase and gutter schedule. Default 13.13
label string Short caption under the art; the art itself is decorative.'row of light'
class string ''