Skip to main content

Variable: AdwBanner

const AdwBanner: "AdwBanner"

Defined in: generated/jsx.ts:13647

A bar with contextual information.

banner

Banners are hidden by default, use Banner.revealed to show them.

Banners have a title, set with Banner.title. Titles can be marked up with Pango markup, use Banner.use-markup to enable it.

The title will be shown centered or left-aligned depending on available space.

Banners can optionally have a button with text on it, set through Banner.button-label. The button can be used with a GAction, or with the Banner.:button-clicked signal. The button can have different styles, a gray style and a suggested style.

banner with suggested button style

CSS nodes

AdwBanner has a main CSS node with the name banner.