Component
Button Sizes
Button sizes from extra small to extra large for different use cases
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/basic-button/sizes/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/basic-button/sizes Tailwind/Components/Buttons/basic-button/sizes <!-- Button - Extra Small -->
<button class="px-3 py-1.5 bg-blue-600 text-white text-xs font-medium rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
Small
</button>
<!-- Button - Small (Default rounded) -->
<button class="px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
Default
</button>
<!-- Button - Large -->
<button class="px-6 py-3 bg-blue-600 text-white text-base font-medium rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
Large
</button>
<!-- Button - Extra Large -->
<button class="px-8 py-4 bg-blue-600 text-white text-lg font-semibold rounded-xl hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
Extra Large
</button> # Basic Button Sizes
Basic button size scale (small / medium / large).
## Preview
Open `preview.html` for a standalone demonstration of this variant.
## Features
- Multiple size variants
- Consistent focus states
- Native buttons
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/basic-button/sizes
```
Copy the size classes you need from `code.html`.
## Customization
- Size-specific padding and text classes
- Colors and radius
## Accessibility
- Native `<button>`
- Adequate touch target sizes recommended for the small variant
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` — copy/paste snippet
- `preview.html` — standalone demo
- `metadata.json` — metadata
- `README.md` — this file 19 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf
Agent skill & Model Context Protocol
Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.
devsnips://components/buttons/basic-button/sizes I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/basic-button/sizes/ Install: npx devsnips add Tailwind/Components/Buttons/basic-button/sizes This is the Button Sizes — Button sizes from extra small to extra large for different use cases Use this DevSnips resource as the starting point for my project. Adapt it to my project's stack and conventions, fix any issues, and make it production-ready while preserving its intended design and behavior.
Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.
Resource URI
devsnips://components/buttons/basic-button/sizes