Beautiful Google Material Design components for Laravel Blade β¨
Transform your Laravel applications with elegant, ready-to-use Material Design components. Build stunning UIs faster than ever, inspired by Material UI π
Before π
<button class="mdc-button mdc-button--raised">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__label">Click Me</span>
</button>After π
<x-mbc::button label="Click Me" variant="raised" />Simple. Clean. Beautiful. That's Material Blade! π«
composer require sensasi-delight/material-bladeAdd the assets component in your layout's <head>:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My App</title>
<!-- π¨ Material Blade Assets -->
<x-mbc::_assets />
</head>
<body>
<!-- β¨ Start using components! -->
<x-mbc::button label="Hello World" color="primary" />
</body>
</html>{{-- π― Alerts --}}
<x-mbc::alert severity="success">Profile updated successfully!</x-mbc::alert>
{{-- π¨ Cards --}}
<x-mbc::card>
<x-mbc::card-header title="Welcome" subtitle="Material Blade" />
<x-mbc::card-content>
Build beautiful interfaces with Material Design!
</x-mbc::card-content>
</x-mbc::card>
{{-- π Buttons --}}
<x-mbc::button variant="raised" color="primary" icon="save">
Save Changes
</x-mbc::button>
{{-- π Text Fields --}}
<x-mbc::text-field label="Email" type="email" required />30+ Material Design components ready to use:
- π Button - β Checkbox - π² Radio - ποΈ Slider - π Switch - π Text Field
- β FAB - πΉ Icon Button
- π Card - π·οΈ Chip - π Data Table - π¨ Icon - πΌοΈ Image List - π List - π¬ Tooltip - βοΈ Typography
π View Full Documentation β
- β 30+ Components - Complete Material Design component library
- β Type-Safe - PHP enums for variants and properties
- β Theme Support - Built-in color system with CSS variables
- β Auto-Discovery - No manual service provider registration (Laravel 8+)
- β Icon Variants - Filled, Outlined, Round, Sharp, Two-Tone
- β Elevation Support - Material Design elevation levels (0-24)
- β Slot-Based - Flexible content structure with Blade slots
- β Well Documented - Comprehensive docs and examples
Want to contribute? We'd love your help! πͺ
# Clone the repository
git clone https://github.com/sensasi-delight/material-blade
cd material-blade
# Install dependencies
composer install
npm install
# Start development
npm run dev- π΄ Fork the Project
- πΏ Create your Feature Branch (
git checkout -b feature/AmazingFeature) - πΎ Commit your Changes (
git commit -m 'Add some AmazingFeature') - π€ Push to the Branch (
git push origin feature/AmazingFeature) - π Open a Pull Request
All contributions are greatly appreciated! β€οΈ
- π PHP 8.1 or higher
- π¨ Laravel 9.x, 10.x, 11.x, or 12.x
- π‘ Basic knowledge of Blade Components
- π Documentation - Complete guide and API reference
- π¨ Material Design - Design guidelines
- π¬ Discussions - Ask questions and share ideas
Released under the MIT License. Free to use in personal and commercial projects! π
If you find Material Blade useful, please give us a star β
Made with β€οΈ for the Laravel community