Package org.patternfly.component.banner


package org.patternfly.component.banner
Provides the PatternFly banner component for displaying prominent messages across the top of a page.

A banner is a 1-line, full color, full width container that can be used to communicate short snippets of information to users. Banners can be styled with different colors and can optionally convey status using severity indicators.

Usage

Basic banners with different colors:

Banner defaultBanner = banner("Default banner");
Banner redBanner = banner("Red banner", red);
Banner blueBanner = banner("Blue banner", blue);

Banner with links and status:

Banner linked = banner(blue)
    .text("Blue banner with an ")
    .add(button("inline link button").link().inline());
Banner statusBanner = banner()
    .status(success.status)
    .screenReader("Success banner");
See Also:
  • Classes
    Class
    Description
    A banner is a 1-line, full color, full width container that can be used to communicate short snippets of information to users.