ns-ui

Radio Ballot Drop

A single-choice input as a paper ballot — the chosen option folds into a slip and drops through the ballot box's slot with two-phase paper physics (flutter, then settle), and switching your vote pulls the old slip back out first.

Use when a single-choice form input (radio group) that deserves a tactile, physical selection moment — a survey, a poll, a settings choice among a handful of named options — rather than a plain radio list or segmented control; not for counting or tallying events (see histogram-live-grain for that).

Install

npx shadcn add https://design.helpmarq.com/r/radio-ballot-drop.json
  • radio
  • form
  • input
  • single-choice
  • paper
  • physics
  • vote

ns-ui / radio-ballot-drop

Use arrow keys to change your vote.

Pick a slip — it folds and drops through the slot. Choosing another pulls the old one back out first.

Props

PropTypeDefaultDescription
options?BallotOption[]DEFAULT_OPTIONS
label?string"Offsite location"
defaultValue?string
className?string