# Upstage Design System — Banner (product)
- context: product · group: display
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/banner/ · machine doc: /agent/components/product/banner.md
## Required references (read these)
- /components/display/Banner.jsx — implementation · sha256 21b492d68648…
- /components/_types.d.ts — api · key BannerProps
- /components/display/Banner.prompt.md — usage-note · sha256 051f1cb31797…
- /kit/rules/a11y-contract.json — a11y · key Banner
## API (components/_types.d.ts BannerProps)
- tone?: "success" | "warning" | "info" | "error" (default info)
- title?: React.ReactNode
- children?: React.ReactNode
- role?: string — 기본값: error는 "alert", 나머지는 "status". 정적 안내면 role="note"로 낮춘다.
- style?: React.CSSProperties
## Accessibility contract
- keys: -
- aria: role=status|alert, aria-live
- notes: 장식 아이콘 aria-hidden
## Rules that name this component
- P-SURFACE-1: Toast·Banner·알림·카드·인용문 한쪽 면의 장식 강조선/색 띠 (방향별 border, inset shadow, 가상 요소 포함)
## Unverified
- Browser behaviour is not verified here (static source check only).
Supported environment
The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.
API
Copied from BannerProps in components/_types.d.ts.
| prop | type | default | doc |
|---|---|---|---|
tone | "success" | "warning" | "info" | "error" | info | |
title | React.ReactNode | — | |
children | React.ReactNode | — | |
role | string | — | 기본값: error는 "alert", 나머지는 "status". 정적 안내면 role="note"로 낮춘다. |
style | React.CSSProperties | — |
Code
One import line plus the example code from the usage note.
import { Banner } from "./components/display/Banner.jsx";<Banner tone="info" title="분당 60건 제한">Free 플랜은 분당 60건까지 보냅니다.</Banner>
<Banner tone="error" title="색인 서버에 연결하지 못했습니다">자동으로 재시도 중입니다 (3/5).</Banner>
<Banner tone="warning" title="크레딧 82% 사용">이번 달 한도까지 18GB 남았습니다.</Banner>Token bindings
Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.
Source
components/display/Banner.jsximplementation · sha256 21b492d68648…components/_types.d.tsapi · BannerPropscomponents/display/Banner.prompt.mdusage-note · sha256 051f1cb31797…kit/rules/a11y-contract.jsona11y · Bannerkit/rules/forbidden-rules.jsonrules · P-SURFACE-1