# 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).
Guidance
components/display/Banner.prompt.mdOriginal · KO · not translated
Inline notice using the --state-* bg/icon/fg triples. 문구 규칙은 DESIGN.microcopy.md.
tone과 문구의 심각도를 맞춘다. 사용자가 손쓸 수 없는 일에 error를 쓰면 경고가 닳는다.
error에는 복구 경로가 반드시 있어야 한다 — 무엇이 실패했는지, 왜, 지금 할 수 있는 한 가지. 셋 중 '어떻게'가 없으면 에러가 아니라 통보다.
제목에 결론을 담는다 — "오류가 발생했습니다"가 아니라 무엇이 실패했는지. role="status"(error는 alert)로 읽히므로 제목만으로 뜻이 서야 한다.
차단이 필요하면 Modal, 사라져도 되는 피드백이면 Toast.
Product 표면 강조 규칙 · 1.9.4-rc.2
Toast·Banner·알림·카드·인용문의 한쪽 면을 굵게 칠하는 장식 강조선을 사용하지 않는다. 방향별 border, inset shadow, 가상 요소, 별도 색 띠로 같은 스타일을 재현하지 않는다. Toast는 기존 8px radius와 네 면이 같은 1px 중립 외곽선을 유지한다. 상태는 아이콘 색·모양과 명확한 문구로 표현한다. Banner의 균일한 1px 상태색 외곽선은 유지한다. 인용문은 한쪽 선과 선 전용 들여쓰기를 제거한다. 표/레이아웃 구분선, 입력 underline, 포커스 링, 로딩 spinner 및 차트의 데이터 표시는 이 장식 강조선 규칙의 대상이 아니다.
Rules
- P-SURFACE-1 Toast·Banner·알림·카드·인용문 한쪽 면의 장식 강조선/색 띠 (방향별 border, inset shadow, 가상 요소 포함)균일한 외곽선과 상태 아이콘·문구로 표현한다. 인용문은 장식선 없이 표시한다.
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