kbd-example.tsx — ui Source File
Architecture documentation for kbd-example.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7d86731d_04ad_49e7_fa2b_0b218824c453["kbd-example.tsx"] f56be340_a522_c6f7_dec3_5906873d14c8["example"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> f56be340_a522_c6f7_dec3_5906873d14c8 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 1fc17a46_59d6_3716_6581_5cf015f0af50["input-group"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> 1fc17a46_59d6_3716_6581_5cf015f0af50 941de019_b70e_6211_9c0b_708c5bd935fe["kbd"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> 941de019_b70e_6211_9c0b_708c5bd935fe 2b4184c3_5c46_f908_0cc6_fa22dfa7c663["tooltip"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> 2b4184c3_5c46_f908_0cc6_fa22dfa7c663 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 7d86731d_04ad_49e7_fa2b_0b218824c453 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 7d86731d_04ad_49e7_fa2b_0b218824c453 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Button } from "@/registry/bases/base/ui/button"
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
} from "@/registry/bases/base/ui/input-group"
import { Kbd, KbdGroup } from "@/registry/bases/base/ui/kbd"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/registry/bases/base/ui/tooltip"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function KbdExample() {
return (
<ExampleWrapper>
<KbdBasic />
<KbdModifierKeys />
<KbdGroupExample />
<KbdArrowKeys />
<KbdWithIcons />
<KbdWithIconsAndText />
<KbdInInputGroup />
<KbdInTooltip />
<KbdWithSamp />
</ExampleWrapper>
)
}
function KbdBasic() {
return (
<Example title="Basic">
<div className="flex items-center gap-2">
<Kbd>Ctrl</Kbd>
<Kbd>⌘K</Kbd>
<Kbd>Ctrl + B</Kbd>
</div>
</Example>
)
}
function KbdModifierKeys() {
return (
<Example title="Modifier Keys">
<div className="flex items-center gap-2">
<Kbd>⌘</Kbd>
<Kbd>C</Kbd>
</div>
</Example>
)
}
function KbdGroupExample() {
return (
<Example title="KbdGroup">
// ... (133 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- example
- icon-placeholder
- input-group
- kbd
- tooltip
Source
Frequently Asked Questions
What does kbd-example.tsx do?
kbd-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in kbd-example.tsx?
kbd-example.tsx defines 10 function(s): KbdArrowKeys, KbdBasic, KbdExample, KbdGroupExample, KbdInInputGroup, KbdInTooltip, KbdModifierKeys, KbdWithIcons, KbdWithIconsAndText, KbdWithSamp.
What does kbd-example.tsx depend on?
kbd-example.tsx imports 6 module(s): button, example, icon-placeholder, input-group, kbd, tooltip.
Where is kbd-example.tsx in the architecture?
kbd-example.tsx is located at apps/v4/registry/bases/base/examples/kbd-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free