# Corner Brackets Button

> A minimal button with corner brackets that slide out to frame it on hover.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: brackets, corners, hover, outline, minimal
- Live preview: https://copy-css.com/snippets/corner-brackets-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-brackets">Explore</button>
```

## CSS

```css
.btn-brackets {
  position: relative;
  padding: 14px 30px;
  border: 0;
  background: transparent;
  color: #1c1917;
  font: 700 15px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-brackets::before,
.btn-brackets::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #ea580c;
  transition: all 0.25s ease;
}

.btn-brackets::before {
  top: 4px;
  left: 4px;
  border-right: 0;
  border-bottom: 0;
}

.btn-brackets::after {
  right: 4px;
  bottom: 4px;
  border-left: 0;
  border-top: 0;
}

.btn-brackets:hover::before,
.btn-brackets:hover::after {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}
```

## Notes

- This CSS Corner Brackets Button is 41 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses transitions.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
