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:
23
resources/views/flux/tab/panel.blade.php
Normal file
23
resources/views/flux/tab/panel.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@blaze
|
||||
|
||||
@props([
|
||||
'selected' => false,
|
||||
'name' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$classes = Flux::classes()
|
||||
->add('[&:not([data-selected])]:hidden [:where(&)]:pt-8')
|
||||
;
|
||||
|
||||
if ($name) {
|
||||
$attributes = $attributes->merge([
|
||||
'name' => $name,
|
||||
'wire:key' => $name,
|
||||
]);
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div {{ $attributes->class($classes)->merge(['data-selected' => $selected]) }} data-flux-tab-panel>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user