From 41b48cac90c042a598ac384d2f54b6a8a78862d4 Mon Sep 17 00:00:00 2001 From: Irineu Junior Date: Fri, 8 Mar 2024 10:26:25 -0300 Subject: [PATCH] feat(brn) adiciona o loading --- src/View/Components/Buttons/Primary.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/View/Components/Buttons/Primary.php b/src/View/Components/Buttons/Primary.php index b7001c1..fe0bb0a 100644 --- a/src/View/Components/Buttons/Primary.php +++ b/src/View/Components/Buttons/Primary.php @@ -9,6 +9,7 @@ class Primary extends Component { public function __construct( public string $label = '', + public bool $spinner = true, ) { $this->label = $label ?: __('Save'); } @@ -16,7 +17,14 @@ public function __construct( public function render(): string|View { return <<<'HTML' - HTML;