Skip to content

Commit 31313dc

Browse files
authored
docs: Virtual List Aura style variants and properties (#4940)
1 parent 822b645 commit 31313dc

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Styling
3+
page-title: How to style the Virtual List | Vaadin components
4+
description: Styling API reference for the Virtual List component.
5+
meta-description: Customize the Virtual List component to align with your application’s theme and branding.
6+
order: 50
7+
---
8+
= Virtual List Styling
9+
10+
== Style Variants
11+
12+
Virtual List supports the following style variants:
13+
14+
[cols="2,3,1"]
15+
|===
16+
| Variant | Description | Supported by
17+
18+
|`overflow-indicators`
19+
|Shows visual indicators at the top and bottom when the content is scrolled
20+
|Aura, Lumo
21+
22+
|`overflow-indicator-top`
23+
|Shows visual indicator at the top when the content is scrolled
24+
|Aura, Lumo
25+
26+
|`overflow-indicator-bottom`
27+
|Shows visual indicator at the bottom when the content is scrolled
28+
|Aura, Lumo
29+
30+
|===
31+
32+
.Virtual List Padding
33+
[TIP]
34+
Do not set `padding` to the virtual list when using these variants, as it prevents the borders from appearing in the correct positions. Use `--vaadin-virtual-list-padding-block` and `--vaadin-virtual-list-padding-inline` properties instead.
35+
36+
include::../_styling-section-theming-props.adoc[tag=style-properties]
37+
38+
[cols="2,1"]
39+
|===
40+
| Property | Supported by
41+
42+
|`--vaadin-virtual-list-padding-block`
43+
|Aura, Lumo
44+
45+
|`--vaadin-virtual-list-padding-inline`
46+
|Aura, Lumo
47+
48+
|===
49+
50+
51+
include::../_styling-section-intros.adoc[tag=selectors]
52+
53+
54+
Root element:: `vaadin-virtual-list`
55+
56+
57+
=== States
58+
59+
Content overflow at bottom:: `vaadin-virtual-list+++<wbr>+++**[overflow~="bottom"]**`
60+
Content overflow at top:: `vaadin-virtual-list+++<wbr>+++**[overflow~="top"]**`
61+
Content overflow start (left):: `vaadin-virtual-list+++<wbr>+++**[overflow~="start"]**`
62+
Content overflow end (right):: `vaadin-virtual-list+++<wbr>+++**[overflow~="end"]**`

0 commit comments

Comments
 (0)