ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
    IntroductionLocal DevelopmentUpdating VersionsNode Modules & Customization
    Configuration
    Writing
    OpenAPI
    Authentication
    Integrations
    Guides
    Extending
    Components
      General
      Documentation
      Form
        ButtonCheckboxSliderSwitchLabel
      Utility
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
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 May 29, 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