Made of something. A scarred cobalt housing, blackened steel slider carriage and swept metal chain teeth.

The moment. Dragging moves the chain with the value. Repeated passes progressively mark the teeth, while the carriage stays under direct pointer control.

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

Drag the carriage, or focus it and use the arrow keys.

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-magazine-slider.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-magazine-slider

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/magazine-slider-demo.tsx
"use client";

import { useState } from "react";
import { MagazineSlider } from "@/components/grimkit/magazine-slider";

export default function Example() {
  const [volume, setVolume] = useState(60);
  return <MagazineSlider label="Comms volume" value={volume} onValueChange={setVolume} min={0} max={100} step={5} />;
}

API Reference

Props on Chain Slider. Consult the included TypeScript source for supported native attributes.

PropTypeDefault
value / defaultValueControlled or initial range value.number60
onValueChangeReports changes immediately, independently of the chain animation.(value: number) => void
min / max / stepNative range bounds and detents.number | string0 / 100 / 5
label / formatValueTextAccessible label and formatted value.string / (value: number) => string
name / form / disabledNative range input attributes.Native input attributes
classNameAdditional class on the control surface; does not replace the material styles.string
effectsAuto honours reduced motion; off disables decorative motion and particles."auto" | "off""auto"

Information

Category
GrimKit
Files
  • components/grimkit/magazine-slider.tsx
  • components/grimkit/core.tsx
  • components/grimkit/foundation.css
  • components/grimkit/materials.css
  • components/grimkit/modern-chain-slider.tsx
  • components/grimkit/modern-foundation.css
  • components/grimkit/modern-chain-slider.css
  • components/grimkit/modern-chain-slider-materials.css
  • components/grimkit/modern-blackened-metal-v1-materials.ts
  • 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.2.0
Updated
Sep 22, 2026
Registry
grimkit-magazine-slider