跳到正文
Linasan UI

Command 命令面板

可搜索的命令列表,基于 cmdk。

没有匹配的结果

后台的全局搜索(⌘K)见 CommandMenu。

安装

pnpm dlx shadcn@latest add https://docs.linasan.cn/r/command.json

第一次装本站的组件前先在项目里执行一次 shadcn init,详见 安装。

用法

import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command';

本页目录