ZeroGravity UI

Typographystable

Stencil

Display type filled with stripes, checks, gradients, an image or video.

Customize

Fillwhat shows through the letters
text
fill
image
colors
64 pxscale
68 °angle
continuous
0.00 sanimate
Typesize and weight of the letters
160 pxsize
800weight
-0.020 emtracking
0.00 pxoutline
outlineColor
Hoverwhat a letter does under the cursor
hover
1.00strength

Usage

TSX
import { Stencil } from "zerogravity"

<Stencil />

Generated from the controls above. Only props that differ from their defaults are shown.

Props

16 documented props on Stencil
PropertyTypeDefaultDescription
textstring"ZEBRA"Word.
fill"zebra" | "leopard" | "stripes" | "checker" | "dots" | "grid" | "gradient" | "rainbow" | "image""zebra"Pattern.
imagestring""Image URL.
colorsstring[]["#f7f7f5", "#141414"]Pattern colours.
scalenumber64Pattern scale. Range 8 to 300 px.
anglenumber68Pattern angle. Range 0 to 180 °.
continuousbooleantruePattern flows across the word.
animatenumber0Pattern loop time. Range 0 to 20 s.
sizenumber160Font size. Range 40 to 340 px.
weightnumber800Weight. Range 100 to 900.
trackingnumber-0.02Tracking. Range -0.12 to 0.3 em.
outlinenumber0Outline. Range 0 to 6 px.
outlineColorstring"#ffffff"Outline colour.
hover"none" | "lift" | "pop" | "wave" | "tilt" | "shift" | "glow" | "expand" | "reveal""lift"Effect.
strengthnumber1Strength. Range 0 to 2.5.
mediastring—Video URL used by the reveal hover mode.

Dependencies

0 external runtime dependencies

Ships with nothing but React.