Command
Generated from public Vue/TypeScript exports by
pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commitfc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.
Command
import { Command } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
modelValue | AcceptableValue | AcceptableValue[] | undefined | "" | The controlled value of the listbox. Can be binded with v-model. |
defaultValue | AcceptableValue | AcceptableValue[] | undefined | — | The value of the listbox when initially rendered. Use when you do not need to control the state of the Listbox |
multiple | boolean | undefined | — | Whether multiple options can be selected or not. |
orientation | DataOrientation | undefined | — | The orientation of the listbox. <br>Mainly so arrow navigation is done accordingly (left & right vs. up & down) |
dir | Direction | undefined | — | The reading direction of the listbox when applicable. <br> If omitted, inherits globally from ConfigProvider or assumes LTR (left-to-right) reading mode. |
disabled | boolean | undefined | — | When true, prevents the user from interacting with listbox |
selectionBehavior | "toggle" | "replace" | undefined | — | How multiple selection should behave in the collection. |
highlightOnHover | boolean | undefined | — | When true, hover over item will trigger highlight |
by | string | ((a: AcceptableValue, b: AcceptableValue) => boolean) | undefined | — | Use this to compare objects by a particular field, or pass your own comparison function for complete control over how objects are compared. |
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
name | string | undefined | — | The name of the field. Submitted with its owning form as part of a name/value pair. |
required | boolean | undefined | — | When true, indicates that the user must set the value before the owning form can be submitted. |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
update:modelValue | [value: AcceptableValue] | — | — |
entryFocus | [event: CustomEvent<any>] | — | — |
highlight | [payload: { ref: HTMLElement; value: AcceptableValue; } | undefined] | — | — |
leave | [event: Event] | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandDialog
import { CommandDialog } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
open | boolean | undefined | — | The controlled open state of the dialog. Can be binded as v-model:open. |
defaultOpen | boolean | undefined | — | The open state of the dialog when it is initially rendered. Use when you do not need to control its open state. |
modal | boolean | undefined | — | The modality of the dialog When set to true, <br> interaction with outside elements will be disabled and only dialog content will be visible to screen readers. |
unmountOnHide | boolean | undefined | — | When set to false, the dialog content will not be unmounted when closed, but instead hidden with CSS. <br> Useful for SEO or when you want to improve performance by not remounting the component on every open. |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
update:open | [value: boolean] | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandEmpty
import { CommandEmpty } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandGroup
import { CommandGroup } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
heading | string | undefined | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandInput
import { CommandInput } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
modelValue | string | undefined | — | The controlled value of the filter. Can be binded with v-model. |
autoFocus | boolean | undefined | — | Focus on element when mounted. |
disabled | boolean | undefined | — | When true, prevents the user from interacting with item |
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandItem
import { CommandItem } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
value | AcceptableValue | Required | The value given as data when submitted with a name. |
disabled | boolean | undefined | — | When true, prevents the user from interacting with the item. |
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
select | [event: SelectEvent$3<AcceptableValue>] | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandList
import { CommandList } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandSeparator
import { CommandSeparator } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
orientation | DataOrientation | undefined | — | Orientation of the component. Either vertical or horizontal. Defaults to horizontal. |
decorative | boolean | undefined | — | Whether or not the component is purely decorative. <br>When true, accessibility-related attributes are updated so that that the rendered element is removed from the accessibility tree. |
asChild | boolean | undefined | — | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. |
as | AsTag | Component | undefined | — | The element or component this component should render as. Can be overwritten by asChild. |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}
CommandShortcut
import { CommandShortcut } from '@gxp-dev/app-ui'
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
default | {} | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Default
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
render: () => ({
components: {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
template: `
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
`,
}),
}
InDialog
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'In Dialog',
render: () => ({
components: {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const open = ref(false)
return { open }
},
template: `
<div>
<p class="text-sm text-muted-foreground mb-4">
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">Cmd+K</kbd> or click the button below.
</p>
<Button variant="outline" @click="open = true">Open Command Palette</Button>
<CommandDialog v-model:open="open">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
`,
}),
}
Showcase
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ref } from 'vue'
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from 'lucide-vue-next'
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from '.'
import { Button } from '../button'
{
name: 'Showcase',
render: () => ({
components: {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
Button,
Calendar,
Smile,
Calculator,
User,
CreditCard,
Settings,
},
setup() {
const dialogOpen = ref(false)
return { dialogOpen }
},
template: `
<div class="space-y-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Inline Command</h3>
<Command class="rounded-lg border shadow-md w-[400px]">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
<CommandItem value="calculator">
<Calculator class="mr-2" />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="billing">
<CreditCard class="mr-2" />
<span>Billing</span>
<CommandShortcut>Cmd+B</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-white">Command Dialog</h3>
<Button variant="outline" @click="dialogOpen = true">Open Command Palette</Button>
<CommandDialog v-model:open="dialogOpen">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem value="calendar">
<Calendar class="mr-2" />
<span>Calendar</span>
</CommandItem>
<CommandItem value="search-emoji">
<Smile class="mr-2" />
<span>Search Emoji</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem value="profile">
<User class="mr-2" />
<span>Profile</span>
<CommandShortcut>Cmd+P</CommandShortcut>
</CommandItem>
<CommandItem value="settings">
<Settings class="mr-2" />
<span>Settings</span>
<CommandShortcut>Cmd+S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</CommandDialog>
</div>
</div>
`,
}),
}