Slider
Adjust one value or a range with pointer and keyboard input.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/slider-number-sync.json.
Usage
Examples
Paired with a number field
Custom readouts
Scale labels and ticks
Thumbs and states
API
8 props
Accessibility
Label every thumb and provide a readable value. Use range examples when the two endpoints have different meanings.
Related
FieldField composes form label, description, error, and input building blocks.7 examplesNumberFieldNumeric entry with increment buttons, bounds, locale formatting and scrubbing.2 examplesAspectRatioKeep media at a stable aspect ratio as its container resizes.1 exampleAvatarProfile images, resilient initials, presence, verification, account menus and collaborator groups. The existing Avatar API and curated patterns share the same image and fallback primitives.10 examplesButtonButton renders the Gaudi action and link-button variants.7 examplesButtonGroupGroup related actions with joined borders and consistent sizing.9 examples