BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/kbd-example

Kbd

agileflow-projectquestorg/kbd-example
FreeExample

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/kbd-example.json

Source

registry/radix-nova/examples/kbd-example.tsxraw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/kbd-example.json
1import {
2 Example,
3 ExampleWrapper,
4} from "@/registry/bases/radix/components/example"
5import { Button } from "@/registry/bases/radix/ui/button"
6import {
7 InputGroup,
8 InputGroupAddon,
9 InputGroupInput,
10} from "@/registry/bases/radix/ui/input-group"
11import { Kbd, KbdGroup } from "@/registry/bases/radix/ui/kbd"
12import {
13 Tooltip,
14 TooltipContent,
15 TooltipTrigger,
16} from "@/registry/bases/radix/ui/tooltip"
17import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
18
19export default function KbdExample() {
20 return (
21 <ExampleWrapper>
22 <KbdBasic />
23 <KbdModifierKeys />
24 <KbdGroupExample />
25 <KbdArrowKeys />
26 <KbdWithIcons />
27 <KbdWithIconsAndText />
28 <KbdInInputGroup />
29 <KbdInTooltip />
30 <KbdWithSamp />
31 </ExampleWrapper>
32 )
33}
34
35function KbdBasic() {
36 return (
37 <Example title="Basic">
38 <div className="flex items-center gap-2">
39 <Kbd>Ctrl</Kbd>
40 <Kbd>⌘K</Kbd>
41 <Kbd>Ctrl + B</Kbd>
42 </div>
43 </Example>
44 )
45}
46
47function KbdModifierKeys() {
48 return (
49 <Example title="Modifier Keys">
50 <div className="flex items-center gap-2">
51 <Kbd>⌘</Kbd>
52 <Kbd>C</Kbd>
53 </div>
54 </Example>
55 )
56}
57
58function KbdGroupExample() {
59 return (
60 <Example title="KbdGroup">
61 <KbdGroup>
62 <Kbd>Ctrl</Kbd>
63 <Kbd>Shift</Kbd>
64 <Kbd>P</Kbd>
65 </KbdGroup>
66 </Example>
67 )
68}
69
70function KbdArrowKeys() {
71 return (
72 <Example title="Arrow Keys">
73 <div className="flex items-center gap-2">
74 <Kbd>↑</Kbd>
75 <Kbd>↓</Kbd>
76 <Kbd>←</Kbd>
77 <Kbd>→</Kbd>
78 </div>
79 </Example>
80 )
81}
82
83function KbdWithIcons() {
84 return (
85 <Example title="With Icons">
86 <KbdGroup>
87 <Kbd>
88 <IconPlaceholder
89 lucide="CircleDashedIcon"
90 tabler="IconCircleDashed"
91 hugeicons="DashedLineCircleIcon"
92 phosphor="CircleDashedIcon"
93 />
94 </Kbd>
95 <Kbd>
96 <IconPlaceholder
97 lucide="ArrowLeftIcon"
98 tabler="IconArrowLeft"
99 hugeicons="ArrowLeft01Icon"
100 phosphor="ArrowLeftIcon"
101 />
102 </Kbd>
103 <Kbd>
104 <IconPlaceholder
105 lucide="ArrowRightIcon"
106 tabler="IconArrowRight"
107 hugeicons="ArrowRight01Icon"
108 phosphor="ArrowRightIcon"
109 />
110 </Kbd>
111 </KbdGroup>
112 </Example>
113 )
114}
115
116// … truncated

What it pulls in

Other registry items

  • button
  • input-group
  • kbd
  • tooltip
  • example

Files it writes

  • registry/radix-nova/examples/kbd-example.tsx

Facts

Registry
shadcn/ui
Type
registry:example
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

agileflow.projectquestorg.com projectquestorg/AgileFlow on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 133 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordion-exampleshadcn/uiExamplesFreeno deps
Alert Dialogalert-dialog-exampleshadcn/uiExamplesFreeno deps
Alertalert-exampleshadcn/uiExamplesFreeno deps
Aspect Ratioaspect-ratio-exampleshadcn/uiExamplesFreeno deps
Avataravatar-exampleshadcn/uiExamplesFreeno deps
Badgebadge-exampleshadcn/uiExamplesFreeno deps
Breadcrumbbreadcrumb-exampleshadcn/uiExamplesFreeno deps
Buttonbutton-exampleshadcn/uiExamplesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex