Docs

Documentation versions (currently viewingVaadin 25 (prerelease))

Split Layout Styling

Styling API reference for the Split Layout component.

Style Variants

Split Layout supports the following style variants:

Variant Description Supported by

small

Makes the visual divider smaller

Aura, Lumo

minimal

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

--vaadin-split-layout-handle-background

Aura, Lumo

--vaadin-split-layout-handle-size

Aura, Lumo

--vaadin-split-layout-handle-target-size

Aura, Lumo

--vaadin-split-layout-splitter-background

Aura, Lumo

--vaadin-split-layout-splitter-size

Aura, Lumo

--vaadin-split-layout-splitter-target-size

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

States

Horizontal split

vaadin-split-layout[orientation="horizontal"]

Vertical split

vaadin-split-layout[orientation="vertical"]

Parts

Splitter bar

vaadin-split-layout::part(splitter)

Splitter drag handle

vaadin-split-layout::part(handle)

Splitter visual handle

vaadin-split-layout::part(handle)::after

First content

vaadin-split-layout > [slot="primary"]

Second content

vaadin-split-layout > [slot="secondary"]