@props([ 'variant' => 'skeleton', 'label' => null, 'progress' => null, 'progressLabel' => null, ]) @php $variant = in_array($variant, ['skeleton', 'spinner', 'progress'], true) ? $variant : 'skeleton'; $progressValue = is_numeric($progress) ? max(0, min(100, (int) $progress)) : null; $progressLabel = $progressLabel ?: ($progressValue !== null ? $progressValue.'%' : null); $accessibleLabel = $label ?: __('kview-ui-core::ui.common.loading'); @endphp