Dropdown
You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.
# Basics
Using the moonshine::dropdown
component, you can create dropdown blocks
<x-moonshine::dropdown> <div class="m-4"> {{ fake()->text() }} </div> <x-slot:toggler>Click me</x-slot:toggler></x-moonshine::dropdown>
Et natus omnis distinctio fugit aut est. Voluptate neque excepturi officiis ducimus dolores. Blanditiis ducimus error autem ducimus quae minima quas. Culpa autem sit aut.
# Title
<x-moonshine::dropdown title="Dropdown title"> <div class="m-4"> {{ fake()->text() }} </div> <x-slot:toggler>Click me</x-slot:toggler></x-moonshine::dropdown>
Dropdown title
Qui ducimus numquam blanditiis quos eligendi rem qui. Quasi doloribus voluptatem ex. Reiciendis sed ratione impedit aliquam iste ut. Eos molestiae corrupti nesciunt assumenda rerum.
# Footer
<x-moonshine::dropdown> <div class="m-4"> {{ fake()->text() }} </div> <x-slot:toggler>Click me</x-slot:toggler> <x-slot:footer>Dropdown footer</x-slot:footer></x-moonshine::dropdown>
Est sit quod quam eos. Nostrum doloremque a exercitationem magnam est dignissimos suscipit. Ipsa nesciunt aut velit quaerat quibusdam.
# Placement
Available placement:
bottom top left right
<x-moonshine::dropdown placement="left"> <div class="m-4"> {{ fake()->text() }} </div> <x-slot:toggler>Click me</x-slot:toggler></x-moonshine::dropdown>
Dolor harum voluptas libero rerum in. Aut ut culpa incidunt omnis minima expedita officia.
For additional location options, see the official documentation tippy.js