Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
@props(['tone' => 'neutral', 'icon' => null])
|
||||
|
||||
@php
|
||||
$tone = in_array($tone, ['neutral', 'accent', 'gold', 'success', 'danger'], true) ? $tone : 'neutral';
|
||||
@endphp
|
||||
|
||||
<span {{ $attributes->class(['badge', "badge--{$tone}" => $tone !== 'neutral']) }}>
|
||||
@if ($icon) <x-dynamic-component :component="'heroicon-m-'.$icon" /> @endif
|
||||
{{ $slot }}
|
||||
</span>
|
||||
Reference in New Issue
Block a user