Kbd
Kbd is a component that represents keyboard input.
Shift + Tab
<Text>
<Kbd>Shift</Kbd> + <Kbd>Tab</Kbd>
</Text>
Usage
import { Kbd } from "@yamada-ui/react"
import { Kbd } from "@/components/ui"
import { Kbd } from "@workspaces/ui"
<Kbd />
Change Variant
Shift + Tab
Shift + Tab
Shift + Tab
Shift + Tab
<VStack>
<For each={["solid", "subtle", "surface", "outline"]}>
{(variant, index) => (
<Text key={index}>
<Kbd variant={variant}>Shift</Kbd> + <Kbd variant={variant}>Tab</Kbd>
</Text>
)}
</For>
</VStack>
Change Size
Shift + Tab
Shift + Tab
Shift + Tab
<VStack>
<For each={["sm", "md", "lg"]}>
{(size, index) => (
<Text key={index}>
<Kbd size={size}>Shift</Kbd> + <Kbd size={size}>Tab</Kbd>
</Text>
)}
</For>
</VStack>
Change Color Scheme
Shift + Tab
Shift + Tab
<VStack>
<For each={["success", "warning"]}>
{(colorScheme, index) => (
<Text key={index}>
<Kbd colorScheme={colorScheme}>Shift</Kbd> +{" "}
<Kbd colorScheme={colorScheme}>Tab</Kbd>
</Text>
)}
</For>
</VStack>
Props
Similar Components
Blockquote
Blockquote is a component that represents a quotation. By default, it renders a blockquote element.
Code
Code is a component that represents a code block. By default, it renders a code element.
Em
Em is a component that represents emphasized text. By default, it renders a em element.
Heading
Heading is a component that represents section headings. By default, it renders an h1 element.
Highlight
Highlight is a component that highlights specified strings within text. By default, it renders a p element.
Mark
Mark is a component that emphasizes a specific part of the text.
Text
Text is a component that represents a paragraph of text. By default, it renders a p element.
Link
Link is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs.