Banners are used to convey time bound messages, statuses and specfic actions to our users. Depending on the timespan and importance of the message, they can either be a permanent part of the page, or can be dismissable.

We primarily use banners that are either dark gray on light gray, or white on black.

Variants

<Join separator={<Spacer my={1} />}>
  <Banner variant="defaultLight">defaultLight</Banner>
  <Banner variant="defaultDark">defaultDark</Banner>
  <Banner variant="success">success</Banner>
  <Banner variant="error">error</Banner>
  <Banner variant="brand">brand</Banner>
</Join>

Dismissable Banner

You can specify the dismissable prop when the banner should be dismissable.

<Banner dismissable variant="defaultLight">
  Please verify your email address
  <Button ml={2} variant="primaryWhite" size="small">
    Resend Email
  </Button>
</Banner>

With Icons

When communicating a status, we use colored icons in along with text.

<Banner variant="defaultDark">
  <TimerIcon mr={1} fill="currentColor" /> Registration pending
</Banner>
On this page
Variants
Dismissable Banner
With Icons