@extends('layouts.master') @section('title') Dropdowns @endsection @section('body')
@endsection @section('content') @component('components.breadcrumb') @slot('page_title') Dropdowns @endslot @slot('subtitle') UI Elements @endslot @endcomponentAny single .btn can be turned into a dropdown
toggle with some markup changes. Here’s how you can put them to work
with either <button>
elements:
The best part is you can do this with any button variant, too:
The best part is you can do this with any button variant, too:
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.
Trigger dropdown menus above elements
by adding .dropup to the parent
element.
Trigger dropdown menus at the right of the elements by adding .dropstart to the parent element.
Trigger dropdown menus at the right of the elements by adding .dropend to the parent element.
Add .dropdown-menu-end
to a .dropdown-menu to right
align the dropdown menu.
If you want to use responsive alignment, disable dynamic positioning by adding the data-bs-display="static" attribute and use the responsive variation classes.