PHPackages                             admin9/blade-daisyui - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. admin9/blade-daisyui

ActiveLibrary[Templating &amp; Views](/categories/templating)

admin9/blade-daisyui
====================

Blade components for DaisyUI 5 — pure UI, no business logic

v0.2.3(1mo ago)06↑2900%MITBladePHP ^8.2CI passing

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/admin9-labs/blade-daisyui)[ Packagist](https://packagist.org/packages/admin9/blade-daisyui)[ Docs](https://github.com/admin9-labs/blade-daisyui)[ RSS](/packages/admin9-blade-daisyui/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (6)Used By (0)

Blade DaisyUI
=============

[](#blade-daisyui)

Blade components for [DaisyUI 5](https://daisyui.com/) — pure UI, zero business logic.

Provides **65 components** as anonymous Blade views with a `` prefix, ready to drop into any Laravel 11/12 project that uses Tailwind CSS + DaisyUI 5.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12
- Tailwind CSS 4 + DaisyUI 5 (installed in your project)

Installation
------------

[](#installation)

```
composer require admin9/blade-daisyui
```

The package auto-discovers its service provider. No manual registration needed.

Usage
-----

[](#usage)

All components use the `dui` namespace:

```
{{-- Button --}}
Click me

{{-- Card --}}

        Hello
        Card content here.

            Buy Now

{{-- Badge --}}
New

{{-- Alert --}}
Heads up!

{{-- Modal --}}

    Modal content

```

Components (65)
---------------

[](#components-65)

### Actions

[](#actions)

accordion, alert, button, dropdown, fab, loading, modal, progress, radial-progress, skeleton, swap, toast, tooltip

### Data Display

[](#data-display)

avatar, badge, card, carousel, chat, countdown, diff, kbd, list, stat, status, table, timeline

### Data Input

[](#data-input)

calendar, checkbox, fieldset, file-input, filter, input, label, radio, range, rating, select, textarea, toggle, validator

### Layout

[](#layout)

collapse, divider, dock, drawer, footer, hero, indicator, join, mask, navbar, stack

### Navigation

[](#navigation)

breadcrumbs, link, menu, pagination, steps, tab

### Mockup

[](#mockup)

mockup-browser, mockup-code, mockup-phone, mockup-window

### Effects

[](#effects)

hover-3d, hover-gallery, text-rotate, theme-controller

Props Convention
----------------

[](#props-convention)

Components accept DaisyUI modifier props directly:

PropTypeDescription`color`stringDaisyUI color: `primary`, `secondary`, `accent`, `info`, `success`, `warning`, `error``size`stringSize modifier: `xs`, `sm`, `md`, `lg`, `xl``variant`stringStyle variant: `outline`, `soft`, `dash`, `ghost`, `link` (component-specific)All extra HTML attributes are forwarded to the root element via `$attributes->merge()`.

Customizing Classes
-------------------

[](#customizing-classes)

Every component merges your classes with its defaults:

```
{{-- Adds "mt-4" alongside the built-in "btn btn-primary" --}}
Go
```

Visual Review
-------------

[](#visual-review)

The package now includes curated example views under the `blade-daisyui::examples.*` namespace. Mount them in any Laravel app to exercise the components together and validate the visual hierarchy described in [`docs/visual-audit.md`](docs/visual-audit.md) :

```
use Illuminate\Support\Facades\Route;

Route::view('/dui/control-room', 'blade-daisyui::examples.control-room');
Route::view('/dui/landing-editorial', 'blade-daisyui::examples.landing-editorial');
Route::view('/dui/settings-lab', 'blade-daisyui::examples.settings-lab');
```

- `blade-daisyui::examples.control-room` is the administrative control surface that stresses hierarchy, density, tables, alerts, and complex form combinations.
- `blade-daisyui::examples.landing-editorial` is a content-marketing scene that proves the same toolkit can compose gradients, hero storytelling, and layered badges without collapsing into a generic layout.
- `blade-daisyui::examples.settings-lab` is the form-heavy settings scene that stresses neutral controls, validation, filters, toggles, radios, and dense field groupings.

Use the `docs/visual-audit.md` checklist while stepping through both scenes so you notice density shifts, theme transitions, badge pressure, and form behavior before releasing component changes.

For component-level conclusions, see [`docs/component-audit.md`](docs/component-audit.md). That file summarizes which high-frequency primitives are visually stable, which ones are easy to misuse, and where follow-up work is actually worth doing.

### Recommended: Publish The Host Stubs

[](#recommended-publish-the-host-stubs)

The package example views are content-only partials. The fastest way to use them in a real Laravel app is to publish the host wrapper views and the Tailwind/DaisyUI CSS stub:

```
php artisan vendor:publish --tag=blade-daisyui-stubs
```

This will publish:

- `resources/views/blade-daisyui/control-room.blade.php`
- `resources/views/blade-daisyui/landing-editorial.blade.php`
- `resources/views/blade-daisyui/settings-lab.blade.php`
- `resources/css/vendor/blade-daisyui-examples.css`

The published wrapper views use:

```

    @include('blade-daisyui::examples.control-room')

```

If your app uses a different layout component or a section-based layout, just edit the published stubs and replace `` with your preferred wrapper.

### Minimal Host App Routes

[](#minimal-host-app-routes)

Once the wrapper views are published, point routes to the host views instead of the package partials:

```
use Illuminate\Support\Facades\Route;

Route::view('/dui/control-room', 'blade-daisyui.control-room');
Route::view('/dui/landing-editorial', 'blade-daisyui.landing-editorial');
Route::view('/dui/settings-lab', 'blade-daisyui.settings-lab');
```

### Minimal Host App Styling Requirements

[](#minimal-host-app-styling-requirements)

The published CSS stub contains the required Tailwind + DaisyUI imports and scans the package Blade files:

```
@import "tailwindcss";
@plugin "daisyui";

@source "../views/**/*.blade.php";
@source "../js/**/*.js";
@source "../../vendor/admin9/blade-daisyui/resources/views/**/*.blade.php";
```

Make sure your layout still loads the compiled assets, for example:

```
@vite(['resources/css/app.css', 'resources/js/app.js'])
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT. See [LICENSE.md](LICENSE.md).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89f9c7018c46dc8dcaa27f05cb2cd4ee65b698b38afe4791d2d9e4302fa5013d?d=identicon)[qiyue2015](/maintainers/qiyue2015)

---

Top Contributors

[![qiyue2015](https://avatars.githubusercontent.com/u/11554433?v=4)](https://github.com/qiyue2015 "qiyue2015 (16 commits)")

---

Tags

laravelcomponentsbladetailwindDaisyUI

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/admin9-blade-daisyui/health.svg)

```
[![Health](https://phpackages.com/badges/admin9-blade-daisyui/health.svg)](https://phpackages.com/packages/admin9-blade-daisyui)
```

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[daikazu/laravel-glider

Start using Glide on-the-fly instantly in your Laravel blade templates.

882.3k](/packages/daikazu-laravel-glider)[ddfsn/blade-components

Blade Components is a hand-crafted, UI component library for building consistent web experiences in Laravel apps.

193.1k](/packages/ddfsn-blade-components)[electrik/slate

Slate - a Laravel Blade UI Kit is a set of anonymous blade components built using TailwindCSS v4 with built-in dark mode support for your next Laravel project

102.3k1](/packages/electrik-slate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
