Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Banner

Citizen-facing advisories: release schedules, payment deadlines, maintenance windows. Dismissing collapses the height so content below slides up; it is never a dead overlay.

Preview

Service advisory

Barangay caravan rolls through NCR weekends 12–26. Bring any government-issued ID.

Payment window closes Friday

Processing takes three business days after payment. Settle before the 21st to guarantee release before the holiday.

<Banner status="warning" variant="inline">
  <BannerTitle>Payment window closes Friday</BannerTitle>
  <BannerDescription>Settle before the 21st to guarantee release.</BannerDescription>
</Banner>

Usage

One advisory that affects everyone on the page.

Do and don't

  • Do. Keep one primary action and let dismissal collapse the height.
  • Don't. Stack banners or use one for field validation.

Composition

BannerTitle carries the one-line headline, BannerDescription the detail, and BannerActions holds up to two BannerAction buttons. One primary action at most.

Props

  • status="default" | "info" | "success" | "warning" | "error".
  • contrast="low" | "high"; low is a neutral fill with a colored icon, high is a status wash. Use high only when the notice is the point of the page.
  • variant="inline" | "fixed"; in page flow, or full-bleed above the scroll container.
  • dismissible, open, onDismiss, dismissLabel; dismissal collapses the banner instead of unmounting it abruptly.
  • icon; override the status glyph from the icon slot map.
  • size="default" | "compact"; motion; overrides the enter and dismiss timing.

Related

Status colors map to Colors. Urgency semantics belong to the optional civic expression, described in Expressions. Public advisories and emergency notices are never dismissed automatically; dismissal is always a user action.

← PreviousBadgeNext →Breadcrumb

Install

npx shadcn@latest add @pilipinas/banner

For your coding agent