Command

Fast, composable, styled command menu.

No results found.
Component Code
<x-aui::command class="rounded-lg border shadow-md w-[450px] m-auto">
    <x-slot:input placeholder="Type a command or search..."></x-slot:input>
    <x-slot:empty>No results found.</x-slot:empty>
    <x-slot:list>
        <x-aui::command-group heading="Suggestions">
            <x-aui::command-item>
                <i class="fa-regular fa-calendar"></i>
                <span>Calendar</span>
            </x-aui::command-item>
            <x-aui::command-item>
                <i class="fa-regular fa-smile"></i>
                <span>Search Emoji</span>
            </x-aui::command-item>
            <x-aui::command-item disabled>
                <i class="fa-calculator fa-smile"></i>
                <span>Calculator</span>
            </x-aui::command-item>

        </x-aui::command-group>
        <x-aui::command-seperator />
        <x-aui::command-group heading="Settings">
            <x-aui::command-item>
                <i class="fa-regular fa-user"></i>
                <span>Profile</span>
                <x-aui::command-shortcut>⌘P</x-aui::command-shortcut>
            </x-aui::command-item>
            <x-aui::command-item>
                <i class="fa-regular fa-credit-card"></i>
                <span>Billing</span>
                <x-aui::command-shortcut>⌘B</x-aui::command-shortcut>
            </x-aui::command-item>
            <x-aui::command-item>
                <i class="fa fa-cogs"></i>
                <span>Settings</span>
                <x-aui::command-shortcut>⌘S</x-aui::command-shortcut>
            </x-aui::command-item>
        </x-aui::command-group>
    </x-slot:list>
</x-aui::command>

Dialog

Component Code
<div x-data="{showDialog: false}">
    <p @keydown.window.ctrl.j.prevent="showDialog = true" class="hidden lg:block text-sm text-muted-foreground">
        Press
        <kbd
            class="pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100">
            <span class="text-xs">⌘</span>J
        </kbd>
    </p>
    <x-aui::command-dialog x-teleport="body" x-model="showDialog">
        <x-slot:trigger>
            <x-aui::button variant="outline" class="lg:hidden">Open</x-aui::button>
        </x-slot:trigger>
        <x-aui::command>
            <x-slot:input placeholder="Type a command or search..."></x-slot:input>
            <x-slot:empty>No results found.</x-slot:empty>
            <x-slot:list>
                <x-aui::command-group heading="Suggestions">
                    <x-aui::command-item>
                        <i class="fa-regular fa-calendar"></i>
                        <span>Calendar</span>
                    </x-aui::command-item>
                    <x-aui::command-item>
                        <i class="fa-regular fa-smile"></i>
                        <span>Search Emoji</span>
                    </x-aui::command-item>
                    <x-aui::command-item disabled>
                        <i class="fa-calculator fa-smile"></i>
                        <span>Calculator</span>
                    </x-aui::command-item>

                </x-aui::command-group>
                <x-aui::command-seperator />
                <x-aui::command-group heading="Settings">
                    <x-aui::command-item>
                        <i class="fa-regular fa-user"></i>
                        <span>Profile</span>
                        <x-aui::command-shortcut>⌘P</x-aui::command-shortcut>
                    </x-aui::command-item>
                    <x-aui::command-item>
                        <i class="fa-regular fa-credit-card"></i>
                        <span>Billing</span>
                        <x-aui::command-shortcut>⌘B</x-aui::command-shortcut>
                    </x-aui::command-item>
                    <x-aui::command-item>
                        <i class="fa fa-cogs"></i>
                        <span>Settings</span>
                        <x-aui::command-shortcut>⌘S</x-aui::command-shortcut>
                    </x-aui::command-item>
                </x-aui::command-group>
            </x-slot:list>
        </x-aui::command>
    </x-aui::command-dialog>
</div>