mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.
This commit is contained in:
14
resources/views/flux/select/indicator/index.blade.php
Normal file
14
resources/views/flux/select/indicator/index.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@aware([ 'variant' ])
|
||||
|
||||
@props([
|
||||
'variant' => 'check',
|
||||
])
|
||||
|
||||
@php
|
||||
// This prevents variants picked up by `@aware()` from other wrapping components like flux::modal from being used here...
|
||||
$variant = $variant !== 'check' && Flux::componentExists('select.indicator.variants.' . $variant)
|
||||
? $variant
|
||||
: 'check';
|
||||
@endphp
|
||||
|
||||
<flux:delegate-component :component="'select.indicator.variants.' . $variant">{{ $slot }}</flux:delegate-component>
|
||||
Reference in New Issue
Block a user