For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/slider.md.
v0.0.57
  • English
  • Slider

    Data Entry@rockshin/tao-ui

    Selects a numeric value or range using pointer and keyboard input.

    When to use

    Use when approximate adjustment is more useful than typing. Show the current value and units next to the slider.

    Examples

    Controlled value and completion

    onChange follows each movement; onChangeComplete reports the final pointer or keyboard interaction.

    390 × 640
    TSX

    Range and draggable track

    Drag either handle to resize the range or drag the selected track to move both endpoints.

    Budget: 20–60
    TSX

    Marks and discrete values

    step= restricts selection to marks. dots shows all valid step positions.

    OffLowMidHigh
    0100
    TSX

    Tooltip formatting

    Set formatter to null to suppress the tooltip, or open to keep it visible.

    TSX

    Vertical, reversed and RTL

    A vertical slider needs an explicit container height. direction controls keyboard and horizontal value direction.

    0100
    TSX

    Editable ranges

    Click the rail to add a handle. Drag a handle away from the rail to remove it, within minCount and maxCount.

    Stops: 20, 50, 80
    TSX

    Disabled state and focus

    The ref exposes focus and blur. Semantic styles customize the track and handles.

    TSX

    API

    Slider

    PropertyDescriptionTypeDefault Value