# Text Link Button

> A minimal tertiary button styled like a link, with an underline that tightens and an arrow that nudges.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: tertiary, underline, minimal, arrow, subtle
- Live preview: https://copy-css.com/snippets/text-link-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-text">View all projects <span aria-hidden="true">→</span></button>
```

## CSS

```css
.btn-text {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: #4338ca;
  font: 600 16px/1.3 system-ui, sans-serif;
  text-decoration: underline;
  text-decoration-color: #c7d2fe;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
}

.btn-text span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-text:hover {
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.btn-text:hover span {
  transform: translateX(4px);
}

.btn-text:focus-visible {
  border-radius: 4px;
  outline: 2px solid #4338ca;
  outline-offset: 2px;
}
```

## Notes

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