The igc-banner component displays important and concise message(s) for a user to address, that is specific to a page or feature.

  • Renders the text content of the banner message.

prefix - Renders additional content at the start of the message block.

actions - Renders any action elements.

base - The base wrapper of the banner component.

spacer - The inner wrapper that sets the space around the banner.

message - The part that holds the text and the illustration.

illustration - The part that holds the banner icon/illustration.

content - The part that holds the banner text content.

actions - The part that holds the banner action buttons.

Callable

  • Returns ReactNode

Events

onClosed: (args: CustomEvent<void>) => void

Emitted after the banner is closed

Type declaration

onClosing: (args: CustomEvent<void>) => void

Emitted before closing the banner

Type declaration

Methods

  • Hides the banner if not already hidden. Returns true when the animation has completed.

    Returns Promise<boolean>

  • Shows the banner if not already shown. Returns true when the animation has completed.

    Returns Promise<boolean>

  • Toggles between shown/hidden state. Returns true when the animation has completed.

    Returns Promise<boolean>

Properties

open: boolean

Determines whether the banner is being shown/hidden.