c5169e0e
Renato De Donato
a new hope
|
1
2
|
paper-slider
============
|
73bcce88
luigser
COMPONENTS
|
3
4
5
6
7
8
9
10
|
`paper-slider` allows user to select a value from a range of values by
moving the slider thumb. The interactive nature of the slider makes it a
great choice for settings that reflect intensity levels, such as volume,
brightness, or color saturation.
Example:
|
c5169e0e
Renato De Donato
a new hope
|
11
12
13
|
```html
<paper-slider></paper-slider>
```
|
73bcce88
luigser
COMPONENTS
|
14
|
|
c5169e0e
Renato De Donato
a new hope
|
15
16
17
18
|
Use `min` and `max` to specify the slider range. Default is `0` to `100`. For example:
```html
<paper-slider min="10" max="200" value="110"></paper-slider>
```
|
73bcce88
luigser
COMPONENTS
|
19
|
|
c5169e0e
Renato De Donato
a new hope
|
20
|
### Styling slider
|
73bcce88
luigser
COMPONENTS
|
21
22
23
24
25
26
27
28
29
|
The following custom properties and mixins are available for styling:
Custom property | Description | Default
----------------|-------------|----------
`--paper-slider-bar-color` | The background color of the slider | `transparent`
`--paper-slider-active-color` | The progress bar color | `--google-blue-700`
`--paper-slider-secondary-color` | The secondary progress bar color | `--google-blue-300`
`--paper-slider-knob-color` | The knob color | `--google-blue-700`
|
c5169e0e
Renato De Donato
a new hope
|
30
|
`--paper-slider-disabled-knob-color` | The disabled knob color | `--google-grey-500`
|
73bcce88
luigser
COMPONENTS
|
31
32
|
`--paper-slider-pin-color` | The pin color | `--google-blue-700`
`--paper-slider-font-color` | The pin's text color | `#fff`
|
c5169e0e
Renato De Donato
a new hope
|
33
34
|
`--paper-slider-disabled-active-color` | The disabled progress bar color | `--google-grey-500`
`--paper-slider-disabled-secondary-color` | The disabled secondary progress bar color | `--google-grey-300`
|
73bcce88
luigser
COMPONENTS
|
35
|
`--paper-slider-height` | Height of the progress bar | `2px`
|
73bcce88
luigser
COMPONENTS
|
36
|
|
c5169e0e
Renato De Donato
a new hope
|
37
|
Example:
|
73bcce88
luigser
COMPONENTS
|
38
|
|
c5169e0e
Renato De Donato
a new hope
|
39
40
41
42
43
44
45
46
47
48
49
50
51
|
```
paper-slider {
--paper-slider-bar-color: #fff;
--paper-slider-active-color: #0f9d58;
--paper-slider-knob-color: #0f9d58;
--paper-slider-pin-color: #0f9d58;
--paper-slider-font-color: #0f9d58;
--paper-slider-secondary-color: #0f9d58;
--paper-slider-disabled-active-color: #ccc;
--paper-slider-disabled-secondary-color: #ccc;
--paper-slider-height: 5px;
}
```
|