--- title: Kbd description: "`Kbd` is a component that represents keyboard input." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/kbd/kbd.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/kbd - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-kbd--basic --- ```tsx Shift + Tab ``` ## Usage ```tsx import { Kbd } from "@yamada-ui/react" ``` ```tsx import { Kbd } from "@/components/ui" ``` ```tsx import { Kbd } from "@workspaces/ui" ``` ```tsx ``` ### Change Variant ```tsx {(variant, index) => ( Shift + Tab )} ``` ### Change Size ```tsx {(size, index) => ( Shift + Tab )} ``` ### Change Color Scheme ```tsx {(colorScheme, index) => ( Shift +{" "} Tab )} ``` ## Props | Prop | Default | Type | Description | | ------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `size` | `"md"` | `"lg" \| "md" \| "sm"` | The size of the component. | | `variant` | `"surface"` | `"outline" \| "solid" \| "subtle" \| "surface"` | The variant of the component. |