Class Main

All Implemented Interfaces:
AttachNotifier, ClickNotifier<Main>, DetachNotifier, HasAriaLabel, HasComponents, HasComponentsOfType<Component>, HasElement, HasEnabled, HasOrderedComponents, HasSize, HasStyle, HasText, Serializable

@Tag("main") public class Main extends HtmlContainer implements ClickNotifier<Main>, HasOrderedComponents, HasAriaLabel
Component representing a <main> element.

The dominant content of the page. There should typically be only one, and it should not sit inside article, aside, footer, header or nav.

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • Main

      public Main()
      Creates a new empty main.
    • Main

      public Main(Component... components)
      Creates a new main with the given child components.
      Parameters:
      components - the child components