Strongtie Design System
Getting StartedComponents

Command Palette

Search for a command to run...

Getting Started
  • Introduction
  • Setup Guide
  • Package Installation
  • Code Quality Setup
  • Migration Guide
  • Resources
Registry
  • Getting Started
  • Combobox
  • Datepicker
  • MultiSelect
  • Tree
Guides
  • Framework Recommendations
Foundations
  • States
  • Variables
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Command
  • Combobox
  • Context Menu
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Item
  • Kbd
  • Label
  • Menubar
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toaster
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
2026 Simpson Strong-Tie
  1. Docs
  2. Components
  3. Slider

Slider

PreviousNext

Slider is an input component that allows users to select a value from a continuous range.

Sliders provide an intuitive way for users to select numeric values by dragging a handle along a track. They're particularly effective when the precise value is less important than the relative position within a range, such as volume controls, brightness settings, or filter ranges. Sliders support both single values and range selections with two handles, making them versatile for different selection scenarios. They provide immediate visual feedback and are more engaging than text inputs for certain types of numeric selection.

Use sliders when users need to select from a continuous range of values where the exact number is less critical than the general magnitude. They work well for settings and controls where visual adjustment is more intuitive than typing. For precise numeric input or when exact values matter, consider using number inputs instead. Sliders should always include visible value indicators or labels to help users understand the current selection.

Example

"use client"

import { Slider } from "@strongtie/design-system/slider"

export function SliderDefault() {
  return <Slider defaultValue={[50]} max={100} step={1} />
}

Installation

npm install @strongtie/design-system
import { Slider } from "@strongtie/design-system/slider"

Props

All components accept standard HTML attributes and React props.

Examples

"use client"

import { Slider } from "@strongtie/design-system/slider"

export function SliderDefault() {
  return <Slider defaultValue={[50]} max={100} step={1} />
}

Disabled

"use client"

import { Label } from "@strongtie/design-system/label"
import { Slider } from "@strongtie/design-system/slider"

export function SliderDisabled() {
  return (
    <div className="flex flex-col gap-4">
      <Label htmlFor="disabled-slider">Disabled Slider</Label>
      <Slider
        id="disabled-slider"
        defaultValue={[50]}
        max={100}
        step={1}
        disabled
        className="w-[300px]"
      />
    </div>
  )
}

Styling

Components can be styled using the className prop. The design system uses Tailwind CSS for styling.

Classes

CSS classes used by this component:

  • slider

Accessibility

Ensure proper accessibility attributes are added when implementing this component.

SkeletonSwitch

On This Page

ExampleInstallationPropsExamplesDisabledStylingClassesAccessibility

Contribute

  • Report an issue
  • Request a feature
  • Edit this page