Tube Divider
Bent neon tube separators with mounting clips.
Friday, Oct 16
Doors 21:00 · 18+ · £14 on the door
- 21:30Ivory StaticOpening set
- 22:45Mara & the Late ShiftLive, two sets
- 00:15Neon ParishDJ until close
Installation
npx shadcn@latest add https://neonkit.heyaadi.com/r/tube-divider.jsonUsage
import { TubeDivider } from "@/components/ui/tube-divider"
<TubeDivider shape="wave" />Examples
Shapes
The bends are regenerated for the width, so a wave keeps its wavelength instead of stretching. Clips sit where the tube crosses its midline.
Sizes and flow
Size sets the tube thickness and how far it bends. flow sends a pulse of current along the glass.
Colors
Any palette name or hex. clips={false} leaves a bare tube.
API reference
Also accepts native div attributes. It fills the width of its container; the height follows the shape and size.
| Prop | Type | Default |
|---|---|---|
shape | "straight"How the glass is bent. | "straight" |
size | "sm"Tube thickness (2, 3 or 4px) and the depth of the bends. | "md" |
on | booleanLit or dark. Turning it on replays the ignition flicker; off leaves the glass visible. | true |
clips | booleanMetal clips holding the tube to the wall. They catch a little of its light. | true |
flow | booleanA brighter pulse travels along the tube every few seconds. | false |
decorative | booleanHidden from assistive tech when true. Set false when it separates real sections, to expose role="separator". | true |
color | NeonColorTube color. Falls back to --neon-accent, then cyan. | inherited |
Accessibility
- Decorative dividers render role="none" and an aria-hidden SVG, so screen readers skip them.
- With decorative={false} it renders role="separator" with aria-orientation="horizontal"; name it with aria-label if the sections need one.
- The ignition flicker and the flow pulse are off when the user prefers reduced motion.