daniellefence / dropdown
Requires
- php: ^8.1
- daniellefence/buttons: *
- daniellefence/icons: *
README
DaisyUI‑powered dropdown Blade component for links and actions.
A flexible dropdown Blade component for Laravel, supporting both href links and interactive button actions, with full integration into the DanielleFence component suite.
This package provides a reusable dropdown Blade component styled with Tailwind and DaisyUI, built for Laravel projects. It supports standard href links as well as dynamic actions using Alpine, Livewire, or JavaScript via click
bindings. It integrates seamlessly with the DanielleFence button and icon components.
Installation
You can install the package via composer:
composer require daniellefence/dropdown
Usage
<x-df::dropdown label="Options" variant="info" :items="[ ['label' => 'View', 'href' => '/view', 'target' => '_blank'], ['label' => 'Edit', 'click' => 'wire:click=\'editProject\''], ['label' => 'Delete', 'click' => 'wire:click=\'deleteProject\''], ]" />
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sbarron@daniellefence.net instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.