MiHCM
primitives/@mihcm/ui·v0.21.0·stable

Slider

Range input with single or dual thumbs. Three sizes. Powered by Radix Slider.

Live preview

Adjust the controls on the right; the preview and code update in real time.

0
82 selected
100
example.tsxtsx
import { Slider } from '@mihcm/ui/Slider';

export function Example() {
  return (
    <Slider
  value="82"
  tone="primary"
  size="md"
  showValue
  showTrackLabels
  valueLabelPosition="bottom-center"
  trackLabelPosition="bottom"
  labelGap="xs"
  labelGroupGap="xs"
    ></Slider>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add Slider
Copies the source into components/ds/Slider.tsx. You own the file. Use --out to override the directory or --force to overwrite.