# Components Card: Dashed Border Card

A card outlined with a dashed border for a light, sketch feel. Use it for empty states, upload zones, or placeholders that invite the user to add content.

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

## Install

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

## Depends on

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

## About this block

Dashed Border Card wraps a standard card in a dashed outline that sits just
outside the card surface. The card itself holds a header with a title and
short description, a body paragraph, and a footer with two buttons: a cancel
action on the left and a primary action on the right. The dashed frame gives
the whole unit a hand-drawn, provisional feel without altering the card's
interior layout.

Each section is independent. You can rewrite the title, description, and body
copy, swap the button labels, or remove the cancel button entirely if the
action has no escape path. The dashed outline is the only distinguishing
decoration, so the block stays uncluttered no matter what copy you drop in.

## When to use

Reach for this card on pages where something is being created, uploaded, or
confirmed for the first time. The sketched outline signals "not yet real,"
which makes it a natural fit for empty states, new project prompts, or file
drop zones on a creative agency or studio site. It reads as an invitation
rather than a finished object, so it works better here than a solid-border
card when you want the user to feel they are filling in a blank.

A natural flow around it on a Components page:

**Before**

- [Icon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/icon-card) to introduce the feature or
  service the user is about to set up
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to label the type of project or asset
  being created

**After**

- [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card) to confirm
  a completed item with a status color alongside the new entry
- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to surface validation messages or
  success feedback once the action is submitted

## What you can display

The frame suits any moment where a card represents something the user is
about to create or upload rather than something that already exists:

- **New project setup.** Show the project name, a brief description of what
  will be scaffolded, and a deploy or create button to launch the workflow.
- **Upload or import zone.** Replace the body text with accepted file types
  and size limits so the card doubles as a drop target with clear constraints.
- **Placeholder in a grid.** Place the card among filled siblings to mark an
  empty slot and invite the user to add another item to the collection.

> Tip: keep the body copy to two or three short lines so the dashed frame
> stays visible and the card reads as a lightweight prompt, not a form.

## 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)
- [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)
