Component
Split Button
Button components with dropdown or icon triggers for additional actions
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/split-button/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/split-button Tailwind/Components/Buttons/split-button <!-- Split Button Dropdown - Primary -->
<div class="relative inline-flex rounded-md shadow-sm" role="group">
<button class="px-4 py-2 text-sm font-medium text-white bg-indigo-600 rounded-l-lg hover:bg-indigo-700 focus:z-10 focus:ring-2 focus:ring-indigo-500">
Action
</button>
<button class="px-2 py-2 text-sm font-medium text-white bg-indigo-600 border-l border-indigo-700 rounded-r-lg hover:bg-indigo-700 focus:z-10 focus:ring-2 focus:ring-indigo-500">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
</div>
<!-- Split Button Dropdown - Outline -->
<div class="relative inline-flex rounded-md shadow-sm" role="group">
<button class="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-l-lg hover:bg-gray-50 focus:z-10 focus:ring-2 focus:ring-blue-500">
Share
</button>
<button class="px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-l-0 border-gray-300 rounded-r-lg hover:bg-gray-50 focus:z-10 focus:ring-2 focus:ring-blue-500">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"/>
</svg>
</button>
</div> # Split Button
Button components with dropdown or icon triggers for additional actions.
## Variants
| Variant | Description |
|---------|-------------|
| [Icon](./icon/) | Split buttons with icon |
| [Dropdown](./dropdown/) | Split buttons with dropdown trigger |
## Quick Start
```html
<div class="inline-flex rounded-md shadow-sm" role="group">
<button class="px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-l-lg hover:bg-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-500">
Action
</button>
<button class="px-2 py-2 text-sm font-medium text-white bg-blue-600 border-l border-blue-700 rounded-r-lg hover:bg-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-500">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
</div>
```
## Related
- [Basic Button](../basic-button/) - Core button styles
- [Icon Button](../icon-button/) - Icon-only buttons 23 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/split-button I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/split-button/ Install: npx devsnips add Tailwind/Components/Buttons/split-button This is the Split Button — Button components with dropdown or icon triggers for additional actions 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/split-button