React

Page Banner

A top-level message component positioned at the top of the page that communicates overall status or important messages to users.

Available since@seed-design/react@0.1.14, @seed-design/css@0.1.14

Installation

npx @seed-design/cli@latest add ui:page-banner

Props

PageBanner

Prop

Type

prefixIcon?React.ReactNode
title?React.ReactNode
descriptionReact.ReactNode
suffix?React.ReactNode

PageBannerButton

Prop

Type

ActionablePageBanner

Prop

Type

prefixIcon?React.ReactNode
title?React.ReactNode
descriptionReact.ReactNode

DismissiblePageBanner

Prop

Type

prefixIcon?React.ReactNode
title?React.ReactNode
descriptionReact.ReactNode
defaultOpen?boolean | undefined
open?boolean | undefined
onDismiss?(() => void) | undefined

Examples

With Button

You can add a button by passing PageBannerButton to the suffix prop of PageBanner.

Rendering PageBannerButton as a Child

Tones and Variants

Neutral

Positive

Informative

Warning

Critical

Magic

tone="magic" can only be used in combination with variant="weak".

Table of contents