2026-08-05 17:54:48 +00:00
|
|
|
@props(['text' => null, 'compact' => false])
|
2026-08-05 15:56:59 +00:00
|
|
|
|
|
|
|
|
<div {{ $attributes->merge(['class' => 'inline-flex items-center justify-center gap-2 text-[13px] text-neutral-500 dark:text-fg-dim']) }}
|
|
|
|
|
role="status" aria-live="polite">
|
2026-08-05 20:34:56 +00:00
|
|
|
<svg @class(['loading-indicator shrink-0 animate-spin', 'size-3' => $compact, 'size-4' => ! $compact]) viewBox="0 0 24 24"
|
2026-08-05 17:54:48 +00:00
|
|
|
fill="none" aria-hidden="true">
|
2026-08-05 15:56:59 +00:00
|
|
|
<circle class="opacity-20" cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2" />
|
|
|
|
|
<path class="opacity-80" d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" stroke-width="2"
|
|
|
|
|
stroke-linecap="round" />
|
|
|
|
|
</svg>
|
|
|
|
|
|
2024-03-21 11:44:32 +00:00
|
|
|
@if (isset($text))
|
2026-08-05 15:56:59 +00:00
|
|
|
<span>{{ $text }}</span>
|
2024-03-21 11:44:32 +00:00
|
|
|
@endif
|
2024-03-20 11:54:06 +00:00
|
|
|
</div>
|