ComponentsBanner

Banner

A Banner shows an important message with optional actions. It appears below the top app bar and requires user dismissal.

GitHub LogoSource Code

Actions

You can add a set of actions to the banner by specifying the actions prop. The onAction prop is a callback function that is called when an action is clicked.

Custom icons

You can pass a custom icon to the banner by using the customIcon prop.

Controlled

Controlled banner. Click the buttons to display different banners.