Slider

Playground

Properties

Value64
Show value
Disabled

Usage

Slider accepts a single number as its value. Use onValueChange to update the view and onValueCommit for expensive work.

'use client';
import { useState } from 'react';
import { Slider } from '@mbsw/ui';

export default function Example() {
  const [value, setValue] = useState(64);
  return (
    <Slider
      aria-label="Value"
      value={value}
      onValueChange={setValue}
      min={0}
      max={100}
    />
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition