Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ExempleDropdown.html
{{-- Dropdown tasques--}}
<div class="hidden sm:flex sm:items-center sm:ml-6">
<x-jet-dropdown align="right" width="48">
<x-slot name="trigger">
<button class="flex items-center text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out">
<div>{{ __('Tasques') }}</div>
<div class="ml-1">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</div>
</button>
</x-slot>
<x-slot name="content">
<div class="block px-4 py-2 text-xs text-gray-400">
{{ __('Crear tasques') }}
</div>
<x-jet-dropdown-link href="{{ route('tasks') }}">
{{ __('Formulari') }}
</x-jet-dropdown-link>
<div class="border-t border-gray-100"></div>
<div class="block px-4 py-2 text-xs text-gray-400">
{{ __('Llistat de tasques') }}
</div>
<x-jet-dropdown-link href="{{ route('tasksindex') }}">
{{ __('Llistat') }}
</x-jet-dropdown-link>
</x-slot>
</x-jet-dropdown>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment