BannerBanner
화면 위쪽에 정보나 위험을 알리는 띠입니다.A strip at the top of the screen that flags information or risk.
표시Display
Solid
Inbox Manager needs your yes on 2 drafts.
Couldn't reach Gmail. Reconnect to keep Inbox Manager running.
Small banner, still readable.
Default banner at the Figma size.
Large banner for a stronger notice.
Glass
Inbox Manager needs your yes on 2 drafts.
Couldn't reach Gmail. Reconnect to keep Inbox Manager running.
Small banner, still readable.
Default banner at the Figma size.
Large banner for a stronger notice.
import { Banner } from "@horon-ai/react"; function Examples({ surface }: { surface: "solid" | "glass" }) { return ( <div className="flex w-full flex-col items-center gap-3"> <Banner surface={surface} className="w-full max-w-160" action={<button type="button">Review</button>}> Inbox Manager needs your yes on 2 drafts. </Banner> <Banner surface={surface} className="w-full max-w-160" tone="danger" action={<button type="button">Reconnect</button>} > Couldn't reach Gmail. Reconnect to keep Inbox Manager running. </Banner> <div className="flex w-full flex-col items-center gap-3"> <Banner surface={surface} size="sm" className="w-full max-w-96"> Small banner, still readable. </Banner> <Banner surface={surface} size="md" className="w-full max-w-96"> Default banner at the Figma size. </Banner> <Banner surface={surface} size="lg" className="w-full max-w-96"> Large banner for a stronger notice. </Banner> </div> </div> ); } export default function BannerDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex w-full flex-col gap-4"> <p className="text-caption text-text-secondary">Solid</p> <Examples surface="solid" /> </div> <> <p className="text-caption text-text-secondary">Glass</p> <Examples surface="glass" /> </> </div> ); }