Browse the docs

Sheet & Heading

The paper everything sits on, and the lettering that labels it.

Server or clientWCAG AASince v0.1

Live example

Status timeline

A sheet of paper, taped on. Everything inside is printed on paper.

Change every prop live in the playground.

Props

Sheet

PropTypeDefaultWhat it does
childrenReactNodenoneWhat sits on the paper.
tape"none" | "mustard" | "mint" | "periwinkle" | "bubblegum"mustardColor of the two tape strips holding it down, or none.
tiltnumber0A slight rotation in degrees.

Also takes every attribute of <div> (277 more, e.g. onClick, className, aria-*).

Heading

PropTypeDefaultWhat it does
childrenrequiredReactNodenoneThe heading text. Plain text gets lettered; anything else renders as is.
classNamestringnoneExtra class on the heading element.
idstringnoneId of the heading element, e.g. for anchor links.
level2 | 3 | 4 | 12h1 to h4.
scribblebooleantrue for h1/h2Tomato scribble underline.
writeOnbooleantrue for h1/h2Letters write on when the heading scrolls into view.

Lettering

PropTypeDefaultWhat it does
childrenrequiredReactNodenoneThe text to letter. Anything that isn't a string or number renders untouched.
ampnumber2How wobbly: roughly the max tilt in degrees.
classNamestringnoneExtra class on the wrapper span. Not applied when children isn't a string or number.
writeOnbooleanfalseLetters start hidden and write on when data-in is set on this element (see Heading).

Use it well

DoUse lettering for short labels and headings.
Don'tLetter whole paragraphs. Body text stays upright and readable.

Accessibility

  • Lettering gives screen readers the plain text once; the jittered letters are hidden.
  • Headings render fully written on the server and write on only after JavaScript loads.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.