React

Page Banner

페이지 상단에 위치하며 사용자에게 전체적인 상태나 중요한 메시지를 전달하는 상위 레벨 메시지 컴포넌트입니다.

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
open?boolean | undefined
defaultOpen?boolean | undefined
onDismiss?(() => void) | undefined

Examples

With Button

PageBannersuffix prop에 PageBannerButton을 전달하여 버튼을 추가할 수 있습니다.

Rendering PageBannerButton as a Child

Tones and Variants

Neutral

Positive

Informative

Warning

Critical

Magic

tone="magic"variant="weak" 조합으로만 사용할 수 있습니다.

Last updated on

On this page