diff --git a/src/View/Components/Button.php b/src/View/Components/Button.php index aff5f1aa..04d308db 100644 --- a/src/View/Components/Button.php +++ b/src/View/Components/Button.php @@ -13,6 +13,7 @@ class Button extends Component public function __construct( public ?string $label = null, public ?string $icon = null, + public ?string $iconRight = null, public ?string $spinner = null ) { $this->uuid = md5(serialize($this)); @@ -40,12 +41,14 @@ public function render(): View|Closure|string wire:target="{{ $spinnerTarget() }}" wire:loading.attr="disabled" @endif - > + > + @if($spinner) @endif + @if($icon) @@ -53,6 +56,13 @@ public function render(): View|Closure|string @endif {{ $label ?? $slot }} + + + @if($iconRight) + + + + @endif HTML; } diff --git a/src/View/Components/Checkbox.php b/src/View/Components/Checkbox.php index 7a1acae2..3a98d553 100644 --- a/src/View/Components/Checkbox.php +++ b/src/View/Components/Checkbox.php @@ -19,15 +19,16 @@ public function __construct( public function render(): View|Closure|string { return <<<'HTML' -