Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{-- Kelompok butir menu (<details>): terbuka dari server bila `open`, jadi berfungsi tanpa JS. Isi: <x-nav.item>. --}}
|
||||
@props(['label', 'icon' => null, 'open' => false])
|
||||
|
||||
<details {{ $attributes->class('nav-group') }} @if ($open) open data-has-active @endif>
|
||||
<summary>
|
||||
@if ($icon)
|
||||
<x-dynamic-component :component="'heroicon-o-'.$icon" class="nav-item__icon" />
|
||||
@endif
|
||||
<span class="nav-group__label" x-data="nameMarquee"><span class="nav-group__label-text" x-ref="inner">{{ $label }}</span></span>
|
||||
<x-heroicon-m-chevron-down class="nav-group__chevron" />
|
||||
</summary>
|
||||
<div class="nav-group__items">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</details>
|
||||
Reference in New Issue
Block a user