Shift + Tab
import { Kbd } from "@chakra-ui/react"
export const KbdBasic = () => {
  return <Kbd>Shift + Tab</Kbd>
}
import { Kbd } from '@saas-ui/react'<Kbd>F12</Kbd>Render Kbd to showcase key combinations
ctrl+shift+del
import { HStack, Kbd } from "@chakra-ui/react"
export const KbdWithCombinations = () => {
  return (
    <HStack gap="1">
      <Kbd>ctrl</Kbd>+<Kbd>shift</Kbd>+<Kbd>del</Kbd>
    </HStack>
  )
}
Here's an example of using Kbd to showcase function keys
⌘⌥⇧⌃
import { HStack, Kbd } from "@chakra-ui/react"
export const KbdFunctionKeys = () => {
  return (
    <HStack>
      <Kbd>⌘</Kbd>
      <Kbd>⌥</Kbd>
      <Kbd>⇧</Kbd>
      <Kbd>⌃</Kbd>
    </HStack>
  )
}
Use the variant prop to change the appearance of the Kbd component
Shift + TabShift + TabShift + TabShift + Tab
import { HStack, Kbd } from "@chakra-ui/react"
export const KbdWithVariants = () => {
  return (
    <HStack gap="4">
      <Kbd variant="raised">Shift + Tab</Kbd>
      <Kbd variant="outline">Shift + Tab</Kbd>
      <Kbd variant="subtle">Shift + Tab</Kbd>
      <Kbd variant="plain">Shift + Tab</Kbd>
    </HStack>
  )
}
Use the size prop to change the size of the Kbd component
Shift + TabShift + TabShift + Tab
import { HStack, Kbd } from "@chakra-ui/react"
export const KbdWithSizes = () => {
  return (
    <HStack gap="4">
      <Kbd size="sm">Shift + Tab</Kbd>
      <Kbd size="md">Shift + Tab</Kbd>
      <Kbd size="lg">Shift + Tab</Kbd>
    </HStack>
  )
}
Use Kbd within text to highlight key combinations
Press F12 to open DevTools
import { Kbd, Text } from "@chakra-ui/react"
export const KbdWithinText = () => {
  return (
    <Text>
      Press <Kbd>F12</Kbd> to open DevTools
    </Text>
  )
}
| Prop | Default | Type | 
|---|---|---|
| colorPalette  | 'gray' | 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'The color palette of the component | 
| variant  | 'raised' | 'raised' | 'outline' | 'subtle' | 'plain'The variant of the component | 
| size  | 'md' | 'sm' | 'md' | 'lg'The size of the component |