Split Layout Styling
Style Variants
Split Layout supports the following style variants:
| Variant | Description | Supported by |
|---|---|---|
| Makes the visual divider smaller | Aura, Lumo |
| Hides the visual divider completely | Lumo |
Small
The small theme variant makes the visual divider smaller, giving more space to the content areas.
Please note that this variant shows the split handle only on hover, which isn’t ideal for touch devices.
Source code
SplitLayoutThemeVariants.java
split-layout-theme-small.tsx
split-layout-theme-small.ts
Minimal
The minimal style variant hides the visual divider completely. When using this variant, it’s still recommended to somehow indicate the split between the two sides, for example by styling one side as a layer on top of the other.
Please note that this variant shows the split handle only on hover, which isn’t ideal for touch devices.
Source code
SplitLayoutMinimalThemeVariants.java
split-layout-theme-minimal.tsx
split-layout-theme-minimal.ts
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 |
| Aura, Lumo |
| Aura, Lumo |
| 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-split-layout