Skip to content

Metal Knob

A knurled metal knob you turn by dragging.

Plan
Free · MIT
Dependencies
React only
Props
12 (10 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Volume64

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
valuenumber64Current value (controlled mode).
defaultValuenumber64Initial value when not controlled from outside.
onChange(value: number) => voidundefinedCalled every time the value changes.
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Step between values.
labelstring"Volume"Label below the knob.
unitstring""Unit shown next to the value.
sizenumber140Knob diameter, in px.
ticksnumber11Number of major tick marks on the scale.
accentstring"#ffb13b"Color of the lit tick marks.
disabledbooleanfalseDisables the knob.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { MetalKnob } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • Accessible tabs (tablist, arrow keys, Home and End) with a pill that slides on a spring: the leading edge arrives first and stretches the pill as it crosses.

    Navigation

  • An accessible accordion (aria-expanded, regions, arrow keys, Home and End) whose regions open on a real spring: the height bounces as it lands and the content comes in from blurry to sharp.

    Navigation

  • A tooltip (role tooltip) that follows the cursor on a spring and hangs from it like a tag: it tilts with speed and stretches a little as it moves. It also appears on keyboard focus.

    Navigation