ZuploZuplo
LoginStart for Free
  • Documentation
  • API Reference
Getting Started
Concepts
API Management
AI Gateway
MCP Gateway
MCP Server
Developer Portal
    Overview
    Getting Started
      Updating VersionsNode Modules & CustomizationZuplo Branding
      Configuration
      Writing
      OpenAPI
      Authentication
      Integrations
      Guides
      Extending
      Components
        General
        Documentation
        Form
          ButtonCheckboxSliderSwitchLabel
        Utility
    Development
    Deploying & Source Control
    Analytics
    Observability
    Networking & Infrastructure
    Account Management
    Programming API
    Build with AI
    Zuplo CLI
    Migration Guides
    Platform LimitsVersion Support PolicySecuritySupportTrust & ComplianceChangelog
    powered by Zuplo
    Form

    Slider

    A slider component built on Radix UI primitives for numeric input with a range.

    Import

    Code
    import { Slider } from "zudoku/ui/Slider";

    Basic Usage

    Code
    <Slider defaultValue={[50]} max={100} step={1} />

    Range Slider

    Code
    <Slider defaultValue={[25, 75]} max={100} step={1} />

    With Label

    Code
    <div className="space-y-2"> <Label>Volume</Label> <Slider defaultValue={[33]} max={100} step={1} /> </div>

    Disabled State

    Code
    <Slider defaultValue={[50]} max={100} step={1} disabled />

    Custom Step Size

    Code
    <div className="space-y-2"> <Label>Price Range ($)</Label> <Slider defaultValue={[100]} max={1000} min={0} step={50} /> </div>

    With Value Display

    75%
    Code
    const SliderWithValue = () => { const [value, setValue] = useState([75]); return ( <div className="space-y-2"> <div className="flex justify-between"> <Label>Brightness</Label> <span className="text-sm text-muted-foreground">{value[0]}%</span> </div> <Slider value={value} max={100} step={1} onValueChange={setValue} /> </div> ); };

    Features

    • Accessibility: Full keyboard navigation and screen reader support
    • Multiple Thumbs: Support for range sliders with multiple values
    • Customizable: Easy to style with className prop
    • Touch Support: Optimized for touch devices
    Edit this page
    Last modified on October 1, 2026
    CheckboxSwitch
    On this page
    • Import
    • Basic Usage
    • Range Slider
    • With Label
    • Disabled State
    • Custom Step Size
    • With Value Display
    • Features
    React
    React
    React
    React
    React
    React
    React