A split layout layouts children horizontally or vertically, and shows a splitter the user can drag.

  • Fluent
  • Declarative

    SplitLayout.builder()
        .master(new Text("Master"))
        .detail(new Text("Detail"))
        .build()

    @SplitLayout
    List panels = List.of(
        new Text("Master"),
        new Text("Detail")
      );

or


    @SplitLayout
    class Container {
      Object master = new Text("Master");
      Object detail = new Text("Detail");
    }

Available properties

This is the list of available properties for a split layout:

PropertyDescriptionNotes
idid for this component
cssClasseslist of css classescontent of the css attribute
styleinline style attributescontent of the style attribute
fullWidthshortcut to set width:100%true/false
orientationhorizontal/vertical
variantthe size of the draggersmall/minimal

You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/split-layout