Neon Sign
A neon tube sign on a brick or dark wall, for a status read at a glance: on air, open, recording. Each letter is a tube of tinted glass that strikes with a flicker when the sign turns on, then glows steady, casting its colour on the wall, with a rare buzz on one letter; reduced motion fades it on and never buzzes. A status named by its label, with turnOn and turnOff for agents. Tilt Neon from npm (OFL-1.1).
Example
Installation
@fontsource-variable/tilt-neon@5.3.0Usage
Reach for it for a status read across a room or a page at a glance: on air, open, recording. Keep the words short; a tube sign holds a word or two and a small second line.
API reference
NeonSign
| Prop | Type | Default |
|---|---|---|
labelrequiredThe status's accessible name: "Studio", "Shop". | string | – |
textrequiredWhat the tubes spell: "On air", "Open", "Recording". | string | – |
subA smaller second line under it, in its own tube. | string | – |
colorThe tube's colour. Default `pink`. | "pink" | "red" | "orange" | "green" | "blue" | "cyan" | "violet" | "white" | "pink" |
subColorThe second line's colour. Defaults to `color`. | "pink" | "red" | "orange" | "green" | "blue" | "cyan" | "violet" | "white" | – |
wallWhat the sign hangs on. Default `brick`. | "brick" | "dark" | "brick" |
buzzNow and then dims a letter for a moment while lit, as a tired transformer does. Never under reduced motion. Default true. | boolean | true |
labels | Partial<NeonSignLabels> | – |
classNameClasses for the wall; a function gets the sign's state. | string | ((state: NeonSignState) => string | undefined) | – |
Also takes NeonSignOptions.
Other exports
neonSignLabelsneonSignuseNeonBuzztype NeonColortype NeonSignLabelstype NeonSignPropstype NeonSignStatetype NeonWalltype NeonSignOptionsAccessibility
- It is a status named by its label: its words are its text, followed by off while dark, so screen readers hear a change politely.
- The tubes are hidden from screen readers so the words aren't read letter by letter.
- The strike flickers fewer than three times a second; reduced motion fades the sign on and stops the buzz.
Agent actions
Agents find it by its label and call turnOn and turnOff; an app that cancels the change fails the step.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.