React

Inline Banner (Deprecated)

This component is deprecated. Use Page Banner instead.

Installation

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

Props

InlineBanner

Prop

Type

prefixIcon?React.ReactNode
title?React.ReactNode
descriptionReact.ReactNode
linkProps?SeedInlineBanner.LinkProps | undefined

ActionableInlineBanner

Prop

Type

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

DismissibleInlineBanner

Prop

Type

prefixIcon?React.ReactNode
title?React.ReactNode
descriptionReact.ReactNode
variant?"neutralWeak" | "positiveWeak" | "informativeWeak" | "warningWeak" | "warningSolid" | undefined
open?boolean | undefined
defaultOpen?boolean | undefined
onDismiss?(() => void) | undefined

Examples

Content Layout

The linkProps prop is only available on InlineBanner.

Text Only

With Icon

With Title Text

With All

Customizable Parts

Variants

Neutral Weak (Default)

Positive Weak

Informative Weak

Warning Weak

Warning Solid

Critical Weak

Critical Solid

The criticalWeak and criticalSolid variants are only available on InlineBanner and ActionableInlineBanner.

When the variant is criticalWeak or criticalSolid, use position: sticky or similar techniques to keep the inline banner fixed at the top when scrolling.

Table of contents