Scroller Styling
Style Variants
Scroller supports the following style variants:
| Variant | Description | Supported by |
|---|---|---|
| Shows visual indicators at the top and bottom when the content is scrolled | Aura, Lumo |
| Shows visual indicator at the top when the content is scrolled | Aura, Lumo |
| Shows visual indicator at the bottom when the content is scrolled | Aura, Lumo |
|
Tip
|
Scroller Padding
Do not set padding to the scroller when using overflow indicators variants, as it prevents the borders from appearing in the correct positions. Use --vaadin-scroller-padding-block and --vaadin-scroller-padding-inline properties instead.
|
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…} selector.
See Component Style Properties for more information on style properties.
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
- Root element
-
vaadin-scroller
States
- Content overflow at bottom
-
vaadin-scroller[overflow~="bottom"] - Content overflow at top
-
vaadin-scroller[overflow~="top"] - Content overflow start (left)
-
vaadin-scroller[overflow~="start"] - Content overflow end (right)
-
vaadin-scroller[overflow~="end"] - Vertical scrolling only
-
vaadin-scroller[scroll-direction="vertical"] - Horizontal scrolling only
-
vaadin-scroller[scroll-direction="horizontal"]