import type { Meta, StoryObj } from 'storybook-react-rsbuild'; import { Slider } from '../components/ui'; const meta = { title: 'Inputs/Slider', component: Slider, parameters: { docs: { description: { component: 'Radix Slider in the carved-track skin. All Radix Slider props pass through (`defaultValue`, `min`, `max`, `step`, `onValueChange`). Set `marks` to carve step notches into the track — `marks` snaps to the Radix `step`.', }, }, }, args: { defaultValue: [60], min: 0, max: 100, step: 1 }, argTypes: { defaultValue: { control: 'object', description: 'Uncontrolled starting value(s).' }, min: { control: 'number' }, max: { control: 'number' }, step: { control: 'number', description: 'Snap increment (also drives auto `marks`).' }, disabled: { control: 'boolean' }, marks: { control: 'boolean', description: 'Step marks. `true` derives one per `step`; or pass an array for custom/labelled marks.', }, notches: { control: 'inline-radio', options: ['top', 'bottom', 'both', 'none'], description: 'Notch tick placement relative to the track (labels still render when `none`).', }, knobStyle: { control: 'inline-radio', options: ['square', 'round'], description: 'Knob shape: `square` (default) or `round`.', }, className: { control: 'text' }, }, decorators: [(Story) =>