# Dashed Add Button

> A wide dashed placeholder button for adding a new item to a list, board or empty state.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: dashed border, plus, empty state, new item, placeholder
- Live preview: https://copy-css.com/snippets/dashed-add-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-dashed">
  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
  Add new card
</button>
```

## CSS

```css
.btn-dashed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 260px;
  padding: 18px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: transparent;
  color: #475569;
  font: 600 15px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-dashed svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.btn-dashed:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

.btn-dashed:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
}
```

## Notes

- This CSS Dashed Add Button is 35 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses transitions, Flexbox and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
