UI32
47 Accordion48 Alerts49 Avatar50 Badge51 Breadcrumb52 Button53 Button Group54 Calendar55 Card56 Checkbox57 Collapsible58 Combobox59 Data Table60 Date Picker61 Dialog62 Dropdown Menu63 Form64 Input65 Input Mask66 Input OTP67 Pagination68 Popover69 Radio Group70 Select71 Sheet72 Slider73 Sonner74 Switch75 Table76 Tabs77 Textarea78 Tooltip
Charts2
01 Animated radial chart99 Live line
Interactive6
02 Message dock03 Voice powered orb07 Draggable rope93 Timer113 Elastic frame117 Scene states
AI2
13 AI voice input103 Agent trace
Galleries4
04 Ruler carousel10 Portfolio gallery32 Hover image gallery115 Project index
Heroes2
05 Video scroll hero116 Aperture dive
Shaders6
80 Aurora veil88 Kinetic dots90 Silt91 Intaglio92 Phosphor114 Sumi
Tables20
06 Financial table43 Contacts table44 Leads table45 Resizable table46 Server management89 Periodic table100 Flap ledger120 Sortable table121 Pricing table122 Invoice table123 Leaderboard124 Changelog table125 API reference table126 File tree table127 Timetable128 Shortcuts table129 Spec sheet130 Transactions table131 Spreadsheet grid132 Permissions matrix
Cards15
11 Video upload card16 Animated card options17 Animated card status list18 Audio upload card19 Bonuses incentives card20 Coach scheduling21 Dashboard card modal22 Event countdown card23 Hover detail card24 News cards25 Onboarding stages26 Prediction market card27 Product reveal card28 Profile hover card29 Project cards
Badges1
14 Animated status badge
Controls3
31 Gradient selector95 Adaptive precision slider96 Click wheel
Navigation2
94 Radial command ring108 Minimap scrollbar
Utilities3
98 Spring tuner110 Stroke-morph icon119 Glow rules
HUD8
09 HUD frame15 Animated download34 Glitchy 40435 Overlay 236 HUD button37 HUD graph38 HUD status40 Warning graphic
Text10
33 Reveal text133 Glyph morph134 Weight wave135 Decode text136 Magnetic letters137 Slice shift138 Stroke draw type139 Ink bleed text140 Liquid text141 Chromatic text
Components•Spring tuner
Components•Spring tuner

Spring tuner

Tune a spring by grabbing its overshoot, see it run, and copy the exact config.

Dependencies

Motionclsx

Copy below cli

npx shadcn add @bjork-ui/spring-tuner

How to use

<SpringTuner  defaultValue={{ stiffness: 400, damping: 25, mass: 1 }}  defaultGhosts={[    { stiffness: 300, damping: 30, mass: 0.8 },    { stiffness: 200, damping: 25, mass: 1.2 },  ]}  onCopy={(code) => console.log(code)}/>// Drive your own motion with the tuned config<SpringTuner>  {(transition) => (    <motion.div animate={{ x: open ? 120 : 0 }} transition={transition} />  )}</SpringTuner>

ζ 0.97 · settle 426ms · overshoot 0.0%

300
30
0.8
PreviousClick wheelNextLive line

ζ 0.63 · settle 514ms · overshoot 8.1%

Preview
400
25
1
{ type: "spring", stiffness: 400, damping: 25, mass: 1 }