Elements Command
Back to Elements

Command

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Command.Root

Command palette for keyboard-driven navigation.

Prop Type Default Description
api bind: HTMLElement | null null
ref bind: HTMLElement | null null
value bind: string ""
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Dialog

Command palette for keyboard-driven navigation.

Prop Type Default Description
open bind: boolean false
ref bind: HTMLElement | null null
value bind: string ""
title string "Command Palette"
description string "Search for a command to run"
portalProps
children
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Empty

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Group

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children
heading
value
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Input

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
value bind: string ""
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Item

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.LinkItem

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.List

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Separator

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Command.Shortcut

Command palette for keyboard-driven navigation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.