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

Alert

An inline callout for information, warnings, success and errors. It stays in the page and supports composition.

Preview
How this queue works

It reflects prompts in your category over the selected range.

Refresh budget almost used

You are near this month's limit for this category.

Export is ready

Your CSV finished generating and is ready to download.

Data did not load

We could not load responses for this run. Retry shortly.

<Alert variant="warning">
  <AlertIcon />
  <AlertContent>
    <AlertTitle>Payment window closes Friday</AlertTitle>
    <AlertDescription>Settle before the 21st to guarantee release.</AlertDescription>
  </AlertContent>
</Alert>

Usage

A short inline callout that reports a condition inside a page or card.

Do and don't

  • Do. Keep one clear sentence under the title and let the variant carry tone.
  • Don't. Use it as a page-wide advisory with dismissal; use Banner for that.

Variants

default, warning, destructive and success. Warning and destructive render with role="alert"; default and success use role="status". Pass role to override when the context needs it. Icon tint follows the variant unless overridden on AlertIcon.

Composition

AlertIcon is optional. Wrap the title and description in AlertContent so they stack. Every part is optional; a single sentence works on its own.

Props

  • Alert: variant, role, standard div attributes.
  • AlertIcon: icon, variant.
  • AlertContent, AlertTitle, AlertDescription take standard element attributes.

Alert vs Banner

Alert is a small, non-dismissible callout inside a region. Banner is a page-level advisory with contrast options, actions and dismissal. Use one that matches the scope, not both for the same message.

Accessibility

The role determines how a screen reader announces the message. Keep the title short and the description specific. Color reinforces the tone but never replaces the words. Do not put a destructive action here without a confirmation elsewhere.

Related

Status colors come from Colors. The state vocabulary is in States & Feedback.

← PreviousAccordionNext →Avatar

Install

npx shadcn@latest add @pilipinas/alert

For your coding agent