# Components Card: Gradient Border Card

A card edged with a static gradient outline that adds color without noise. Use it to set apart a key offer or profile in an otherwise plain grid.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/cards/gradient-border-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/gradient-border-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-cards-gradient-border-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-gradient-border-card.json"`.

## Depends on

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

## About this block

Gradient Border Card is a single card wrapped in a soft color halo that
sits just behind its edges. At rest the glow is a faint blush of pink and
purple; when the pointer enters, the halo brightens fully and transitions
quickly so the card feels alive. Inside, a header holds a title and a one
line description, a content area carries a short paragraph, and a footer
row shows two buttons aligned to opposite ends.

All four zones are independent. The title, description, body copy, and
button labels can each be rewritten without affecting the others. The two
footer buttons use different variants so you can swap or remove either,
and the card itself can hold any content you place in those regions.

## When to use

Reach for this block when one card on the page needs to draw attention
without an icon or badge doing the work. On a logistics and delivery
platform it suits a "Start a shipment" panel, a courier onboarding prompt,
or a quick action card surfaced in a dashboard sidebar. It outperforms a
plain outlined card when the background is neutral and you need a focal
point, and it is quieter than an animated border when the rest of the page
is already busy.

A natural flow around it on a Components page:

**Before**

- A [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card) to show the
  current state of a shipment before the user acts on it
- A [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card)
  to group related details leading into the action panel

**After**

- The [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) group for standalone call
  to action patterns that continue the flow
- A [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
  if you want a selected state on a follow up step

## What you can display

The block works well any time a single action or offer needs to stand out
from surrounding content. A few concrete fits:

- **A quick action prompt.** Place a short task title and one sentence of
  context in the header, then put the primary and secondary triggers in
  the footer.
- **An upgrade or upsell panel.** Describe the benefit in the body and
  point the primary button at the upgrade flow so the glow signals value.
- **A confirmation step card.** Summarise what is about to happen in the
  content area and label the footer buttons to confirm or go back.

> Tip: the glow is most effective on a white or light gray page background;
> on a dark surface consider reducing the blur or opacity so it stays subtle.

## More in Components Cards

- [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card)
- [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)
- [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)
