mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
fix(docs): update command usage doc
This commit is contained in:
@@ -5,7 +5,6 @@ import { cn } from "@/lib/utils"
|
||||
import { AppleMusicDemo } from "@/components/apple-music-demo"
|
||||
import { CopyButton } from "@/components/copy-button"
|
||||
import { PromoVideo } from "@/components/promo-video"
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio"
|
||||
import { buttonVariants } from "@/components/ui/button"
|
||||
|
||||
export default function IndexPage() {
|
||||
|
||||
@@ -51,7 +51,7 @@ import {
|
||||
```
|
||||
|
||||
```tsx
|
||||
<CommandDialog triggerKey="j">
|
||||
<Command>
|
||||
<CommandInput placeholder="Type a command or search..." />
|
||||
<CommandList>
|
||||
<CommandEmpty>No results found.</CommandEmpty>
|
||||
@@ -67,7 +67,7 @@ import {
|
||||
<CommandItem>Settings</CommandItem>
|
||||
</CommandGroup>
|
||||
</CommandList>
|
||||
</CommandDialog>
|
||||
</Command>
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
Reference in New Issue
Block a user