LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Banner

Components / Product

Banner — Implementation

Page-level notice or warning

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 21b492d68648…
Source language
KO · not translated

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.

proptypedefaultdoc
tone"success" | "warning" | "info" | "error"info
titleReact.ReactNode—
childrenReact.ReactNode—
rolestring—기본값: error는 "alert", 나머지는 "status". 정적 안내면 role="note"로 낮춘다.
styleReact.CSSProperties—

Code

One import line plus the example code from the usage note.

jsx · import
import { Banner } from "./components/display/Banner.jsx";
jsx · Banner.prompt.md
<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.

--font-sans, --state-

Source