From 536fa6c917d63b14feeb8f876e6a1d62acb577fc Mon Sep 17 00:00:00 2001 From: Sam Light Date: Thu, 12 Feb 2026 00:23:02 +0000 Subject: Created new dropdown toolbar item --- src/Toolbar/Dropdown/Button.php | 30 ++++++++++++++++++++++++++++++ src/Toolbar/Dropdown/Item.php | 16 ++++++++++++++++ src/Toolbar/Dropdown/Link.php | 30 ++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 src/Toolbar/Dropdown/Button.php create mode 100644 src/Toolbar/Dropdown/Item.php create mode 100644 src/Toolbar/Dropdown/Link.php (limited to 'src/Toolbar/Dropdown') diff --git a/src/Toolbar/Dropdown/Button.php b/src/Toolbar/Dropdown/Button.php new file mode 100644 index 0000000..83aefbf --- /dev/null +++ b/src/Toolbar/Dropdown/Button.php @@ -0,0 +1,30 @@ + $this->getAttributes([ + 'wire:click' => $this->action, + ]), + 'slot' => $this->slot, + ] + ); + } +} diff --git a/src/Toolbar/Dropdown/Item.php b/src/Toolbar/Dropdown/Item.php new file mode 100644 index 0000000..c10c8f3 --- /dev/null +++ b/src/Toolbar/Dropdown/Item.php @@ -0,0 +1,16 @@ + $this->getAttributes([ + 'href' => $this->href, + ]), + 'slot' => $this->slot, + ] + ); + } +} -- cgit v1.2.3