# Components Card: Border Accent Card

A card with a colored accent line along one edge that draws the eye. Use it to group related text and labels while signaling category or status.

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

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-cards-border-accent-card
```

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-cards-border-accent-card.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button, card
- Installs to: `@/components/blocks/components/cards/border-accent-card`

## About this block

Border Accent Card is a single card with a narrow vertical bar pinned to
its left edge in the primary color. Inside, a header carries a title and
a short description, a content area holds one or two sentences of body
text, and a footer row presents two buttons aligned to opposite ends.

All four sections are independent. You can rewrite the title, description,
and body copy without affecting anything else, and you can swap, relabel,
or remove either button to match your action flow.

## When to use

Reach for this block when you need to call out one task or record inside
a busier view. On a product analytics SaaS the accent bar works well to
mark a setup step, a workspace invite, or a configuration action that
competes for attention alongside charts and stat tiles. It outperforms a
plain card when the category or priority of the item needs a quick visual
signal without adding a badge or label.

A natural flow around it on a Components page:

**Before**

- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to establish the category or status
  label that the accent color reinforces
- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) for a system message that leads the
  reader to the action this card presents

**After**

- [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card) to follow up with
  a confirmation or outcome after the action is taken
- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) to surface related detail
  below the card without expanding the card itself

## What you can customize

The block gives you a compact, focused frame to drop a single action into
any layout:

- **Accent color.** The bar inherits the primary color token, so it
  shifts automatically when you switch themes or brand palettes.
- **Header copy.** Swap the title and description to name any task,
  resource, or record your product surface needs to highlight.
- **Footer buttons.** Replace Cancel and Deploy with any pair of actions,
  or remove one button entirely to reduce the choice to a single step.

> Tip: keep the body copy to two or three short sentences so the card
> stays compact and the footer buttons stay close to the description.

## More in Components Cards

- [Border Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-animation-card)
- [Border Gradient Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-gradient-animation-card)
- [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
- [Corner Ribbon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/corner-ribbon-card)
- [Cutout Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/cutout-border-card)
- [Dashed Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/dashed-border-card)
- [Double Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/double-border-card)
- [Expandable Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/expandable-card)
- [Gradient Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/gradient-border-card)
- [Hover Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-effect-card)
- [Hover Reveal Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-reveal-card)
- [Icon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/icon-card)
- [Magnetic Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/magnetic-card)
- [Neon Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/neon-border-card)
- [Perspective Hover Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/perspective-hover-card)
- [Progress Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/progress-card)
- [Pulse Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/pulse-border-card)
- [Shimmer Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/shimmer-effect-card)
- [Stacked Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/stacked-card)
- [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card)
- [Tilt Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/tilt-effect-card)
