Ecme logoEcme logo
Dashboard
    Ecommerce
    Project
    Marketing
    Analytic
Network
    BGP
      Peer
      RTBH
DPI
    Overview
    Traffic Logs
    Analysis
      IP Analysis
      Domain Check
      nav.dpi.analysis.unmapped-asns
    Threats
      Blacklists
      nav.dpi.threats.feeds
    Configuration
      Senders
      Ignored Domains
Concepts
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
UI Components
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Carousel
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
Authentication
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
Others
    Access Denied
    Landing
Guide
    Documentation
    Shared Component
    Utilities
    Changelog
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy

Slider

Slider is used to select a value within a range.

Basic

Basic usage of Slider.

Range

Basic usage of Range Slider.

Disabled

Make Slider inactive by setting the disabled prop.

Tooltips

Slider allow to show tooltip on hover or always showing.
Show tooltip on hover
Always show tooltip
60
Custom tooltip

Marks

Slider can have marks under the bar using marks prop.
$20,000
$50,000
$80,000

Step

step prop allows you to control the increment value when dragging the slider, it determines how the slider moves across different consistent values & stepOnMarks prop allows you to move slider across different inconsistent values
0°C
25°C
50°C
75°C
100°C
0°C
26°C
37°C
100°C

Min and Max

By default, the slider has a minimum value of 0 and a maximum value of 100. min and max props allow you to set a custom minimum and maximum values of the slider.

Custom Color

We can customize the color of the slider using classNames props, applying classes to different parts of the slider.

Controlled

Controlled usage with <Slider />
Slider value: 50
Range slider value: [20,50]

API

Slider
PropDescriptionTypeDefault
alwaysShowTooltipWhether to showing tooltip all the timeboolean-
classNamesClass name for each part of sliderclassNames?: { thumb?: string; bar?: string; mark?: string | ((isFilled: boolean) => string); track?: string }-
defaultValueDefault value of Slider (use value instead if it is controlled)number-
disabledWhether to disable Sliderboolean-
inputPropsProps for input element that behind the sliderReact.ComponentPropsWithoutRef<'input'>-
marksMarks metadata show under the bar{ value: number; label?: ReactNode | string }[]-
maxMaximum value of Slidernumber100
minMinimum value of Slidernumber0
nameName of input element that behind the sliderstring-
onChangeCallback when Slider value changed(value: number) => void-
onDraggingStopCallback when dragging stop(value: number) => void-
precisionPrecision of Slider valuenumber-
showTooltipOnHoverWhether to show tooltip when hoverbooleanfalse
stepIncrement value when dragging the slidernumber1
stepOnMarksWhether to move slider across different inconsistent step valuesbooleanfalse
thumbAriaLabelAria label of slider thumbstring-
tooltipCustom tooltip value of sliderReactNode | ((value: number) => ReactNode)-
valueValue of Slidernumber-
Slider.Range
PropDescriptionTypeDefault
alwaysShowTooltipWhether to showing tooltip all the timeboolean-
defaultValueDefault value of Range Slider (use value instead if it is controlled)number-
disabledWhether to disable Range Sliderboolean-
inputPropsProps for input element that behind the sliderReact.ComponentPropsWithoutRef<'input'>-
marksMarks metadata show under the bar{ value: number; label?: ReactNode | string }[]-
maxMaximum value of Range Slidernumber100
maxRangeMaximum range interval of Range Slidernumber-
minMinimum value of Range Slidernumber0
minRangeMinimum range interval of Range Slidernumber0
nameName of input element that behind the sliderstring-
precisionPrecision of Range Slider valuenumber-
onChangeCallback when Range Slider value changed(values: [number, number]) => void-
onDraggingStopCallback when dragging stop(values: [number, number]) => void-
showTooltipOnHoverWhether to show tooltip when hoverbooleanfalse
stepIncrement value when dragging the slidernumber1
stepOnMarksWhether to move slider across different inconsistent step valuesbooleanfalse
thumbAriaLabelStartAria label of start slider thumbstring-
thumbAriaLabelEndAria label of end slider thumbstring-
tooltipCustom tooltip value of sliderReactNode | ((value: [number, number]) => ReactNode)-
valueValue of Range Slider[number, number]-
TABLE OF CONTENT
  • Basic
  • Range
  • Disabled
  • Tooltips
  • Marks
  • Step
  • Min and Max
  • Custom Color
  • Controlled