Skip to content

Slider

Allows user to select a range of related values.

Import

js
import { MpSlider } from '@mekari/pixel3'

Playground

API

MpSlider

Props
Events
Slots
NameTypeDefault
id
Id of slider.
string -
value
Value of slider.
number | numer[]0
min
Minimum value of slider.
number0
max
Maximum value of slider.
number100
step
Step value of slider.
number1
variant
Variant of slider.
single | rangesingle
color
Color of slider.
ColorToken | stringsky.100
gradient-color
Gradient color of slider.
ColorToken[] | string[]["blue.50", "blue.100", "blue.400", "blue.700"]
is-gradient
If true, slider will be use gradient color.
booleanfalse
is-disabled
If true, slider will be disable.
booleanfalse

Usage

Range Slider

Custom Slider