The extension comes with a JavaScript implementation which updates the output value associated to the slider.
Documentation
Everything you need to start with Bulma-extensions.
Display a vertical slider by adding orient="vertical"
to the range input.
Display the slider value by adding an output
DOM element after the slider and the class has-output
to the slider. Then use the following JavaScript implementation:
Display the output as a tooltip by changing the class has-output
to has-output-tooltip
and use the following JavaScript implementation:
You can use these variables to customize this component. Simply set one or multiple of these variables before importing Bulma. Learn how.
Name | Default value |
---|---|
Name | Default value |
$slider-radius
|
$radius
|
$slider-track-background
|
$grey-lighter
|
$slider-track-radius
|
$radius
|
$slider-track-border
|
0px solid $grey
|
$slider-track-shadow
|
0px 0px 0px $grey
|
$slider-thumb-background
|
$white
|
$slider-thumb-radius
|
$radius
|
$slider-thumb-border
|
1px solid $grey-light
|
$slider-thumb-to-track-ratio
|
2
|
$slider-output-width
|
3rem
|
$slider-output-background
|
$grey-dark
|
$slider-output-radius
|
$radius
|