Beautiful Laravel Blade Components With Tailwind CSS
A curated collection of ready-to-use Blade components with Tailwind CSS. Copy, paste, and ship faster!
Live demonstration of the selected component. Interact with it to see behaviors.
This horizontal button group features:
- Layout:
- Buttons aligned horizontally using flex container
- Consistent 16px gap between buttons (gap-4)
- Flex-wrap enabled for responsive behavior
- Button Styles (same as previous but now horizontal):
- All buttons maintain identical height and vertical alignment
- Same padding (px-5 py-2.5) across all variants
- Uniform rounded corners (rounded-lg)
- Responsive Behavior:
- Buttons will wrap to next line on small screens
- Maintains consistent spacing in both directions
- Container:
- Centered with mx-auto
- Maximum width of max-w-4xl (56rem)
- Padding of p-8 for breathing room
The horizontal arrangement is ideal for:
- Toolbars
- Form actions
- Navigation elements
- Any UI requiring immediate access to multiple actions
Discount | Hostinger
Premium Hosting & Domain Deals
Free SSL 99.9% Uptime 24/7 Support
<div class="max-w-4xl mx-auto p-8">
<div class="flex flex-wrap items-center gap-4">
<!-- Primary Button -->
<button class="px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-blue-300 transition-all duration-200 ease-in-out">
Primary
</button>
<!-- Secondary Button -->
<button class="px-5 py-2.5 bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-gray-300 transition-all duration-200 ease-in-out dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-white">
Secondary
</button>
<!-- Danger Button -->
<button class="px-5 py-2.5 bg-red-600 hover:bg-red-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-red-300 transition-all duration-200 ease-in-out">
Danger
</button>
<!-- Success Button -->
<button class="px-5 py-2.5 bg-green-600 hover:bg-green-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-green-300 transition-all duration-200 ease-in-out">
Success
</button>
<!-- Outline Button -->
<button class="px-5 py-2.5 border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-gray-300 transition-all duration-200 ease-in-out dark:border-gray-600 dark:hover:bg-gray-700 dark:text-white">
Outline
</button>
<!-- Disabled Button -->
<button class="px-5 py-2.5 bg-blue-600 text-white font-medium rounded-lg opacity-50 cursor-not-allowed" disabled>
Disabled
</button>
</div>
</div>
Live demonstration of the selected component. Interact with it to see behaviors.
This collection demonstrates a modern, minimalist button design system using Tailwind CSS with the following features:
- Visual Styles:
- Clean, rounded corners with rounded-lg
- Consistent padding (px-5 py-2.5) for balanced proportions
- Medium font weight (font-medium) for optimal readability
- Color Variants:
- Primary: Blue gradient (bg-blue-600 to hover:bg-blue-700)
- Secondary: Light gray with dark mode support (dark:bg-gray-700)
- Danger: Red variant for destructive actions
- Success: Green for positive actions
- Outline: Border style with subtle hover effect
- Interactive States:
- Smooth hover transitions (transition-all duration-200 ease-in-out)
- Focus rings for accessibility (focus:ring-4 focus:ring-*color*-300)
- Disabled state with reduced opacity (opacity-50 cursor-not-allowed)
- Layout Options:
- Regular inline buttons
- Full-width option (w-full) for important actions
- Dark mode compatibility using dark: variants
- Design Principles:
- Minimalist aesthetic with no unnecessary decorations
- Consistent spacing and typography
- Accessible color contrast in both light/dark modes
- Subtle animations for better user feedback
The buttons are designed to work well in any modern web application while maintaining a professional, clean appearance. The color palette is carefully selected to be visually harmonious without being distracting.
Discount | Hostinger
Premium Hosting & Domain Deals
Free SSL 99.9% Uptime 24/7 Support
<div class="max-w-md mx-auto p-8 space-y-4">
<!-- Primary Button -->
<button class="px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-blue-300 transition-all duration-200 ease-in-out">
Primary Button
</button>
<!-- Secondary Button -->
<button class="px-5 py-2.5 bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-gray-300 transition-all duration-200 ease-in-out dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-white">
Secondary Button
</button>
<!-- Danger Button -->
<button class="px-5 py-2.5 bg-red-600 hover:bg-red-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-red-300 transition-all duration-200 ease-in-out">
Danger Button
</button>
<!-- Success Button -->
<button class="px-5 py-2.5 bg-green-600 hover:bg-green-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-green-300 transition-all duration-200 ease-in-out">
Success Button
</button>
<!-- Outline Button -->
<button class="px-5 py-2.5 border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-gray-300 transition-all duration-200 ease-in-out dark:border-gray-600 dark:hover:bg-gray-700 dark:text-white">
Outline Button
</button>
<!-- Disabled Button -->
<button class="px-5 py-2.5 bg-blue-600 text-white font-medium rounded-lg opacity-50 cursor-not-allowed" disabled>
Disabled Button
</button>
<!-- Full Width Button -->
<button class="w-full px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg focus:outline-none focus:ring-4 focus:ring-blue-300 transition-all duration-200 ease-in-out">
Full Width Button
</button>
</div>
Getting Started
Learn how to quickly implement these components in your Laravel application with our step-by-step guide.
Documentation
Explore our comprehensive docs to learn about customization options and advanced usage.
Component Usage Guide
1. Browse Components
Our library is organized into logical categories to help you find what you need:
- Navigation: Menus, navbars, pagination
- Forms: Inputs, selects, validation components
- Data Display: Cards, tables, lists
- Feedback: Alerts, modals, loaders
Use the category filter or search functionality to locate specific components.
2. Component Selection
Each component page includes:
- Live Preview: See the component in action
- Variants: Different style options available
- Props/Parameters: Customization options
- Accessibility Notes: ARIA attributes and keyboard navigation
Pro Tip: Click the "Expand Code" button to see implementation details and required dependencies.
3. Implementation
To use a component in your Laravel application:
- Click the "Get this component" button
- Paste into your Blade template file (.blade.php)
- Ensure required CSS/JS dependencies are loaded
- Customize using the available props/tailwind classes
Troubleshooting
- Component not rendering? Check that you've registered the component class in your Laravel service provider
- Styles missing? Verify Tailwind CSS is properly configured in your project
Get the Best Hosting, Domain & VPS on Hostinger!
Premium Hosting
Start from $1.99/month
Domain Registration
.com start from $8.99
Cloud VPS
High performance
Free SSL
With every plan