Class Masthead

    • Method Detail

      • pageMasthead

        public static Masthead pageMasthead()
        Factory method to create a new instance of this component.
      • addBrand

        public Masthead addBrand​(Brand brand,
                                 String homeLink)
        Wraps the brand inside an <a/> element, adds the <a/> element to a MastheadMain component and finally adds the MastheadMain to this component.

        Shortcut for

      • noInset

        public Masthead noInset()
        Modifies this component to have no horizontal padding.
      • noInset

        public Masthead noInset​(Breakpoint breakpoint)
        Modifies this component to have no horizontal padding at the given breakpoint.
      • inset

        public Masthead inset​(Size size)
        Modifies this component to have a horizontal padding.
      • inset

        public Masthead inset​(Size size,
                              Breakpoint breakpoint)
        Modifies this component to have a horizontal padding at the given breakpoint.
      • light

        public Masthead light()
        Modifies this component to have a light theme with a background color of --pf-v5-global--BackgroundColor--200.
      • lighter

        public Masthead lighter()
        Modifies this component to have a light theme with a background color of --pf-v5-global--BackgroundColor--100.
      • inline

        public Masthead inline​(Breakpoint breakpoint)
        Modifies this component to have an inline display at the given breakpoint.
      • stack

        public Masthead stack()
        Modifies this component to have a stacked display.
      • stack

        public Masthead stack​(Breakpoint breakpoint)
        Modifies this component to have a stacked display at the given breakpoint.