Component
Outline Primary Button
Blue bordered buttons with transparent background and hover fill
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/buttons/outline-button/primary/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/outline-button/primary Tailwind/Components/Buttons/outline-button/primary <!-- Outline Button - Default -->
<button class="px-6 py-2.5 border-2 border-blue-600 text-blue-600 font-medium rounded-lg hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
Default
</button>
<!-- Outline Button - Disabled -->
<button class="px-6 py-2.5 border-2 border-blue-600 text-blue-600 font-medium rounded-lg hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors" disabled>
Disabled
</button> # Outline Button Primary
Primary-colored outline button.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Primary outline style
- Focus-visible states
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/outline-button/primary
```
Copy from `code.html`.
## Customization
- Border and text color, hover background
## Accessibility
- Native `<button>`
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 9 lines UTF-8 · LF · Spaces: 2
Continue browsing