You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toggle.blade.php 1.0KB

1234567891011121314151617181920212223242526
  1. @props([
  2. 'label' => null,
  3. 'icon' => null,
  4. 'panelId' => null,
  5. ])
  6. <li>
  7. <button
  8. x-ref="{{ $panelId }}-forward"
  9. @click="setActiveMenu('{{ $panelId }}')"
  10. @keydown.enter="focusBackButton('{{ $panelId }}-back')"
  11. aria-label="Go to {{ $label }}"
  12. class="w-full text-gray-700 dark:text-gray-200 text-sm font-medium flex items-center justify-between p-2 rounded-lg hover:bg-gray-50 focus-visible:bg-gray-50 dark:hover:bg-white/5 dark:focus-visible:bg-white/5">
  13. <div class="flex items-center">
  14. <div class="icon h-9 w-9 flex justify-center items-center mr-4 rounded-full bg-gray-200 dark:bg-white/10">
  15. @if($icon)
  16. <x-filament::icon :icon="$icon" class="h-6 w-6 text-gray-600 dark:text-gray-200"/>
  17. @endif
  18. </div>
  19. @if($label)
  20. <span>{{ $label }}</span>
  21. @endif
  22. </div>
  23. <x-filament::icon icon="heroicon-m-chevron-right" class="text-gray-300 h-8 w-8 pointer-events-none"/>
  24. </button>
  25. </li>