Command

A command palette with fuzzy search and grouped results. Often opened with Cmd+K.

Installation

Copy the command below and run it in your terminal.

bunx @sivir/ui add command

Usage

Import and use the Command components:

import * as Command from '$lib/sivir/components/command';

<Command.Root>
  <Command.Trigger>Open palette</Command.Trigger>
  <Command.Content>
    <Command.Search placeholder="Search..." />
    <Command.Results>
      <Command.Item name="search">Item</Command.Item>
    </Command.Results>
  </Command.Content>
</Command.Root>

Examples

With groups