Installation

Prerequisites

Laravel PHP Version ^11.0 or later
TailwindCSS Version ^4.0 or later
daisyUI Version ^5.0 or later

You need to have daisyUI 9 (and therefore tailwindcss) installed in your laravel project. If you don't have daisyui, you can install it using your favorite package manager.:

npm i -D daisyui@latest

Package Installation

Install the BladeUIX DaisyUI package via Composer:

composer require bladeuix/daisyui

Configure Tailwind CSS

  • Ensure that daisyui tailwindcss plugin in installed.
  • ../../vendor/bladeuix/daisyui/src/View/Components/*.php is 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>