Dot Matrix Text

Text rendered as a configurable animated dot matrix.

Installation

Install the component package, shared coss-svelte theme, and Bits UI peer.

npm install coss-svelte @coss-svelte/theme bits-ui

Usage

Import the Svelte component exports directly from the package.

import { DotMatrixText } from "coss-svelte";

Anatomy

Dot Matrix Text exposes a single component export for the current implementation.

API Reference

DotMatrixText

Text rendered as a configurable animated dot matrix.

PropTypeDefaultDescription
textstring-Text to render; unsupported characters appear as a box.
dotstring | number8Dot diameter as pixels or a CSS length.
gapstring | number2Gap between dots as pixels or a CSS length.
colorstring"currentColor"CSS color of each dot.
motionDotMotion"reveal"Reveal, wave, scan, or still motion.
durationnumber2.4Animation duration in seconds.
staggernumber0.045Delay between neighbouring dots in seconds.
playingbooleantrueWhether animation is enabled.
labelstringtextAccessible label; pass an empty string for decoration.

Inherits from Svelte <div> attributes.

Implementation Details

Status
Experimental
Foundation
native
Category
Feedback & Status
Particles
1

Status

Render accessible bitmap text with configurable dots, motion, and reduced-motion support.