Skip to content

Layouts

Layouts define how components are arranged.

  • vertical (VerticalLayout)
  • horizontal (HorizontalLayout)
  • split (SplitLayout)
public class Panels implements ComponentTreeSupplier {
@Override
public Component component(HttpRequest httpRequest) {
return new SplitLayout(new Text("Left"), new Text("Right"));
}
}

In a reflected form, arrange sections with @Section, @Zones and @Tab instead.

Use layouts to structure your UI instead of manual HTML/CSS.

See it live in the Explorer: Stacks & boxes · Responsive grid & named areas