bladeuix / daisyui
A Laravel blade component library based on daisyUI.
Requires
- php: ^8.2 | ^8.3 | ^8.4 | ^8.5
- illuminate/support: ^12.0 | ^13.0
Requires (Dev)
- laravel/pint: ^1.29
- orchestra/testbench: ^10.0 | ^11.0
- pestphp/pest: ^3.0 | ^4.0
This package is not auto-updated.
Last update: 2026-04-13 01:47:02 UTC
README
BladeUIX DaisyUI is a Laravel package for adding daisyUI components to your Blade templates.
Requirements
| Version | PHP | Laravel |
|---|---|---|
| 1.x | 8.2.x, 8.3.x, 8.4.x, 8.5.x | 12.x, 13.x |
Installation
Prerequisites
You need to have daisyUI installed in your project. If you haven't already, you can install it via your terminal:
npm i -D daisyui@latest
Package Installation
Install the BladeUIX DaisyUI package via Composer:
composer require bladeuix/daisyui
Configure Tailwind CSS
- Ensure that
daisyuitailwindcss plugin in installed. ../../vendor/bladeuix/daisyui/src/View/Components/*.phpis included in tailwindcss scan files.
@import "tailwindcss"; /*Your other @source...*/ @source "../../vendor/bladeuix/daisyui/src/View/Components/*.php"; @plugin "daisyui"; /*Your other css utilities...*/
Basic Usage
Once everything is installed and configured, you can use the components in your Blade templates:
<x-daisyui::button color="primary"> Click Me </x-daisyui::button>
Documentation
Full documentation is available at bladeuix.njoguamos.me.ke/daisyui.
Testing
composer test
Changelog
Please see GitHub Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.