summaryrefslogtreecommitdiff
path: root/resources/views/toolbar/dropdown.blade.php
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2026-02-12 00:23:02 +0000
committerSam Light <samlight1994@gmail.com>2026-02-12 00:23:02 +0000
commit536fa6c917d63b14feeb8f876e6a1d62acb577fc (patch)
tree548f6b23324c8a0ef9448d16773ffad33ccc9c0b /resources/views/toolbar/dropdown.blade.php
parentf998df6a2abaa211a730f247ce814f238228fb70 (diff)
Created new dropdown toolbar itemv2.1.0
Diffstat (limited to 'resources/views/toolbar/dropdown.blade.php')
-rw-r--r--resources/views/toolbar/dropdown.blade.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/views/toolbar/dropdown.blade.php b/resources/views/toolbar/dropdown.blade.php
new file mode 100644
index 0000000..e4cdd8a
--- /dev/null
+++ b/resources/views/toolbar/dropdown.blade.php
@@ -0,0 +1,12 @@
+<div class="dropdown">
+ <button type="button" data-bs-toggle="dropdown" {{ $attributes->class('btn') }}>
+ {{ $slot }}
+ </button>
+ @if ($items->isNotEmpty())
+ <ul class="dropdown-menu">
+ @foreach ($items as $item)
+ <li>{{ $item->render() }}</li>
+ @endforeach
+ </ul>
+ @endif
+</div>