Typographystable
Bitmap
Pixel text
Pixel text set on a 5x7 grid, lit by a sweep, a wave or a cycling palette in pure CSS.
ZeroGravity
Customize
Typethe word and the grid it is set on
text0 px
pixelSize0.120
gap1
trackingLightpalette and how it moves across the cells
colorseffectanimated1.00
speed0.82
dimpausedUsage
import { Bitmap } from "zerogravity/bitmap"
<Bitmap
text="ZeroGravity"
gap={0.12}
colors={["#4ee1f2", "#c6f432"]}
dim={0.82}
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "ZeroGravity" | Text. |
pixelSize | number | 0 | Pixel size (0 fills the width). Range 0 to 24 px. |
gap | number | 0.1 | Gap. Range 0 to 0.5. |
tracking | number | 1 | Tracking. Range 0 to 4. |
colors | string[] | [] | Palette (empty uses color). |
effect | "sweep" | "wave" | "cycle" | "sweep" | Effect. |
animated | boolean | true | Animated. |
speed | number | 1 | Speed. Range 0.1 to 4. |
dim | number | 0.6 | Dim. Range 0 to 1. |
paused | boolean | false | Paused. |
color | string | "currentColor" | Single colour used when colors is empty. |
as | "span" | "div" | "p" | "strong" | "h1" … "h6" | "span" | Element that carries the real, screen-reader text. |
respectReducedMotion | boolean | true | Render the static palette when the reader prefers reduced motion. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.