Made of something. Asymmetric scrap steel, rough welds, chipped yellow paint and a recessed number drum.

The moment. The drum advances through tactile detents and retargets continuously during rapid changes. The input stays editable and respects numeric bounds.

Yours to adapt. Copy the component source, styles and materials. Functional text stays live, effects respect reduced motion, and the artwork requires no remote hosting.

Try it

Advance the counter, reverse it rapidly, or edit the number directly.

Install

Add it with the shadcn CLI, or copy the source manually.

Release candidate: public installation becomes available after deployment. Use an existing React 19 project with shadcn initialized and a components.json file. The CLI installs the source, CSS, embedded materials, MIT licence and font notices together.

Terminal
npx shadcn@latest add https://seanportfol.io/r/grimkit-salvage-stepper.json
Prefer a namespace? Register the registry once.
Terminal
npx shadcn@latest registry add @seanlynch=https://seanportfol.io/r/{name}.json
Terminal
npx shadcn@latest add @seanlynch/grimkit-salvage-stepper

Usage

Copy this example into a separate file, not over the installed component. The @/ alias points to your source root. In Next.js this is a Client Component; Vite also accepts the directive. Replace demonstration actions with your application logic.

components/examples/salvage-stepper-demo.tsx
"use client";

import { SalvageStepper } from "@/components/grimkit/salvage-stepper";

export default function Example() {
  return <SalvageStepper label="Reserve rounds" name="rounds" defaultValue={12} min={0} max={99} step={1} />;
}

API Reference

Props on Salvage Stepper. Consult the included TypeScript source for supported native attributes.

PropTypeDefault
labelAccessible control label.string–
valueControlled value. Update it in the change callback; visual effects never delay value changes.number–
defaultValueInitial uncontrolled value. Do not combine with value.number12
onValueChangeReports a requested value change immediately.(value: number) => void–
minLower numeric bound.number0
maxUpper numeric bound.number99
stepNumeric increment.number1
nameNative form field name.string–
formID of the associated form.string–
disabledDisables user interaction and cancels transient effects.booleanfalse
effectsAuto honours reduced motion; off suppresses decorative motion without changing values.'auto' | 'off''auto'

Information

Category
GrimKit
Files
  • components/grimkit/salvage-stepper.tsx
  • components/grimkit/salvage-stepper-materials.ts
  • components/grimkit/salvage-stepper.css
  • components/grimkit/LICENSE.txt
  • components/grimkit/Saira-OFL.txt
  • components/grimkit/JetBrainsMono-OFL.txt
Dependencies
React 19 and React DOM 19; no additional runtime packages
Compatibility
React 19, TypeScript, CSS imports, Modern browsers
Version
0.3.0
Updated
Sep 24, 2026
Registry
grimkit-salvage-stepper