Skip to content

FullWidth

Stretches its child component to fill the entire browser width, removing the centred container constraint.

new FullWidth(myContent)
PropertyTypeDefaultDescription
contentComponentThe component to render full-width
styleString""Inline CSS
cssClassesString""CSS class names
new FullWidth(
VerticalLayout.builder()
.content(List.of(
new Text("Spans the full browser width"),
heroImage
))
.build()
)

Use FullWidth for hero sections, full-bleed images, banners, or any section that should break out of the centred column layout. For a constrained, centred column, use Container instead.