Button 04
A refined CTA with an interaction-driven border trace, accessible focus behavior, and lightweight CSS animation.
Requirements
HTML, CSS
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Button 04
Button 04 is a button component in the Button Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 31, 2026.
- button
- cta
- buttons
- border
- trace
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px.
React + TypeScript + Tailwind CSS
3 files: Button04.jsx, Button04.types.ts, Button04.tailwind.css
- Configurable through 3 props: variant, className, children.
- Renders without React state or effects.
- HTML elements used: button.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm.