ComponentsInputs & forms
Ridge Slider
A slider whose track is a ridgeline: the marker climbs the path as the value changes and the readout gives the percentage and the altitude there.
"use client";
import { RidgeSlider } from "@/components/miyuki-ui/ridge-slider";
export default function RidgeSliderDemo() {
return (
<div className="flex w-full max-w-lg flex-col gap-1">
<RidgeSlider label="Turn-around point" minAltitude={760} maxAltitude={2932} defaultValue={64} seed={5} />
<p className="text-[13px] text-muted-foreground">Turn back by 13:00 wherever you are on the ridge.</p>
</div>
);
}Install
npx shadcn@latest add @miyuki-ui/ridge-sliderThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
RidgeSlider
Prop
Type