@php
$getState = $getState();
@@ -26,28 +27,30 @@
@endif
-
-
- {{ $getState }}
- @if($getIcon)
-
- @endif
-
+
+ {{ $getState }}
-
- {{ $getContent }}
-
+ @if($getIcon)
+
+ @endif
+
+
+
+ {{ $getContent }}
@if (filled($descriptionBelow))
diff --git a/src/Concerns/HasPopover.php b/src/Concerns/HasPopover.php
index d9adbbf..9eab02d 100644
--- a/src/Concerns/HasPopover.php
+++ b/src/Concerns/HasPopover.php
@@ -10,7 +10,7 @@ trait HasPopover
protected mixed $placement = 'top';
- protected array $offset = [0.10];
+ protected int $offset = 0;
protected string $popOverMaxWidth = '300';
@@ -50,14 +50,14 @@ public function getPlacement(): mixed
return $this->evaluate($this->placement);
}
- public function offset(array $offset): static
+ public function offset(int $offset): static
{
$this->offset = $offset;
return $this;
}
- public function getOffset(): array
+ public function getOffset(): int
{
return $this->offset;
}