Sections / Gems / Inputs and forms

Bead Rail

A quantity input for pricing pages (seats, guests, licences) as beads on a wire. The beads on the right are the ones you count: drag along the wire, click it or use the keys, and the beads that change sides slide over one after another and clack into the stack while the number rolls and the total follows. A real range input sits on top of the wire, so it works in forms, with the keyboard, on touch and with screen readers.

Included with Everything
Open the demo
Bead Rail: six frames of the gem in motion
Kind
Inputs and forms
Interaction
range input · physics · rolling number · price total · keyboard · form field
Dependencies
None
Licence
Licensed with Full Access, for the sites you build; do not resell the gem itself

Formats

  • Webflow (native)
  • Figma (layers)
  • Framer component
  • HTML
  • Prompts for Claude Code, Cursor, Lovable, v0, Bolt

Copy to Webflow pastes a native section with the gem in an Embed inside it. Copy to Figma pastes a frame of its best moment, text and controls as layers. Copy to Framer pastes a component with its options as controls. HTML is one self-contained snippet. Each prompt (Claude Code, Cursor, Lovable, v0, Bolt) carries the exact files, so your agent installs this gem, not a lookalike. With the MCP server, ask your agent for get_section("bead-rail").

Behaviour and accessibility

  • It is a native range input with a name, so it submits with a form; arrow keys, Page Up and Down, Home and End work as usual and the value is spoken with its unit and total.
  • Hovering the wire shows where a click would set the split, with the value it would give; touch drags the native slider.
  • The beads slide over the first time the rail is seen; after that nothing runs until the value changes, and nothing runs off screen.
  • With prefers-reduced-motion: beads and digits jump to the new value, no slide, no clack.
  • The total uses the visitor's number format and the currency code you give it; set price to 0 to hide the total line.

Options

OptionTypeDefaultWhat
minnumber0Smallest value.
maxnumber20Largest value.
stepnumber1Value per bead.
valuenumber8Starting value.
unitstring"seats"What is counted, plural ("seats").
unitOnestring"seat"The same, singular ("seat").
pricenumber12Price per unit for the total line; 0 hides it.
currencystring"EUR"Currency code for the total (ISO 4217, e.g. EUR, USD).
periodstring"a month"Text after the total ("a month").
accentstring"#ff8a3d"Colour of the counted beads and the accents.
theme'dark' | 'light'"dark"dark or light.
labelstring"Team size"Accessible name of the slider.
namestring"seats"Name of the input, for forms.
onChange(value: number) => voidCalled whenever the value changes.