daniellefence/dropdown

1.0.1 2025-06-24 20:24 UTC

This package is auto-updated.

Last update: 2025-06-24 20:25:02 UTC


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.

Latest Version on Packagist Total Downloads GitHub Actions

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.