# Components Alert: Top Accent Alerts

Alerts topped with a colored bar across the upper edge for a header cue. Use for grouped notices where the accent reads like a small banner.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/alerts/top-accent-alerts
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/alerts/top-accent-alerts.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-alerts-top-accent-alerts
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-alerts-top-accent-alerts.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react
- shadcn/ui components: alert
- Installs to: `@/components/blocks/components/alerts/top-accent-alerts`

## About this block

Top Accent Alerts shows five alert variants stacked in a single column.
Each alert carries a thick colored bar along its top edge, followed by an
optional status icon, a bold title, and a short description below. The
five tones covered are default (neutral), destructive (red), success
(green), warning (yellow), and info (blue), so a reader can see the full
range of states at once.

Every alert is independent. You can use any one tone in isolation, reorder
the stack, or drop variants that do not apply to your product. The icon,
title, and description copy are all free to change, and you can remove the
icon from any row without affecting the rest of the layout.

## When to use

Reach for this block when you need a set of status notices that feel
structured but not heavy. The top bar reads like a small header stripe,
which works well in HR and hiring workflows where a candidate portal or
recruiter dashboard needs to surface form validation results, submission
confirmations, deadline warnings, and info notices in one consistent
pattern. Compared to a left accent bar, the top bar gives each alert a
slightly more header-like presence, which suits stacked contexts where
alerts appear one after another rather than inline.

A natural flow around it on a Components page:

**Before**

- [Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts) to establish the
  plain pattern before introducing the accented variant
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) for labeling status categories above
  a section that then uses these alerts

**After**

- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts) if
  the notices should be clearable once a user has read them
- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to wrap follow-up actions the user
  should take after reading a status alert

## What you can display

Each tone maps naturally to a real event in a hiring or onboarding flow:

- **Submission confirmed.** Swap the success alert copy to acknowledge a
  completed application or background check without any extra markup.
- **Action required warnings.** Use the warning variant to flag an
  expiring document or a missing field before a deadline passes.
- **Informational guidance.** Drop the info alert into an onboarding
  checklist to surface policy notes or next steps in a calm, readable tone.

> Tip: if you only need two or three tones on a given page, remove the
> unused alerts entirely so the stack stays concise and scannable.

## More in Components Alerts

- [Accent Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/accent-border-alerts)
- [All Sides Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/all-sides-accent-alerts)
- [Basic Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/basic-alerts)
- [Bottom Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/bottom-accent-alerts)
- [Compact Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/compact-alerts)
- [Dashed Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dashed-border-alerts)
- [Dismissible Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dismissible-alerts)
- [Dotted Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/dotted-border-alerts)
- [Double Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/double-border-alerts)
- [Elevated Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/elevated-alerts)
- [Frosted Glass Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/frosted-glass-alerts)
- [Glow Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/glow-border-alerts)
- [Icon Only Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/icon-only-alerts)
- [Inset Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/inset-alerts)
- [Monospace Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/monospace-alerts)
- [Outlined Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/outlined-alerts)
- [Paper Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/paper-alerts)
- [Pulse Border Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/pulse-border-alerts)
- [Right Accent Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts/right-accent-alerts)
