--- title: "MazSlider" description: "MazSlider is a standalone component that replaces the standard html input range with a beautiful design system. Many options like multiple cursors and values, colors, sizes and logarithmic/exponential values are available" package: "maz-ui" url: "https://maz-ui.com/components/maz-slider" --- # MazSlider > MazSlider is a standalone component that replaces the standard html input range with a beautiful design system. Many options like multiple cursors and values, colors, sizes and logarithmic/exponential values are available - Package: `maz-ui` - Import: `import MazSlider from 'maz-ui/components/MazSlider'` - Nuxt: auto-imported by `@maz-ui/nuxt`, no import needed in a Nuxt app - Web: https://maz-ui.com/components/maz-slider > Before use it, you should install the MazUi plugin in your project, follow instructions in [Getting Started](../guide/getting-started.md) ## Basic usage ```vue ``` ## Options ### Step ```html ``` ### Multiple sliders & labels ```vue ``` ### Sizes & colors ```vue ``` ### Logarithmic/exponential ```vue ``` ## hide dividers & cursor animation > Each sections between cursors has the same color > > Component don't have animation on cursor ```vue ``` ## Accessibility Each cursor is a `slider` with `aria-valuenow`, `aria-valuemin`, `aria-valuemax` and `aria-valuetext` when `labels` are set. **Keyboard**: ← / ↓ and → / ↑ move by one `step`, Page Down / Page Up by ten steps, Home / End to the lowest / highest value allowed for the cursor (a cursor never passes its neighbours). ## MazSlider API `import MazSlider from 'maz-ui/components/MazSlider'` ### Props - `model-value` (`number | number[] | null`, required, `v-model`): Array of cursors values. - `labels` (`string[]`): array of cursors label. - `min` (`number`, default: `0`): min value of sliders. - `max` (`number`, default: `100`): max value of sliders. - `step` (`number`, default: `1`): step value for slider increments. - `size` (`` `${number}rem` | `${number}px` | `${number}em` | `${number}vw` | `${number}vh` | `${number}vmin` | `${number}vmax` | `${number}%` | `${number}ch` | `${number}cm` | `${number}mm` | `${number}in` | `${number}ex` | `${number}pc` | `${number... ``): height size of slider bar. - `divider` (`boolean`, default: `true`): remove div in different colors. - `log` (`boolean`, default: `false`): become a logarithmic slider (exponential). - `color` (`"primary" | "secondary" | "accent" | "info" | "success" | "warning" | "destructive" | "contrast" | "transparent"`, default: `"primary"`): main slider color. - `cursor-anim` (`boolean`, default: `true`): disables cursor animation when active. ### Events - `@update:model-value` (payload: `any[`)