Keyboard component.
<P> Press <Kbd>Command + Tab</Kbd> to switch between open apps on macOS.</P>
Here's the <Kbd />
component in action.
Press Command + Tab to switch between open apps on macOS.
import { forwardRef, type HTMLAttributes } from 'react'import { cn } from '#app/utils/tailwind-merge'
const Kbd = forwardRef<HTMLElement, HTMLAttributes<HTMLElement>>(({ className, ...props }, ref) => <kbd ref={ref} className={cn('kbd', className)} {...props} />)Kbd.displayName = 'Kbd'
export { Kbd }
.kbd { @apply border-spacing-fluid-1 border-muted-200 bg-muted-50 pb-fluid-3 pt-fluid-4 px-fluid-4 text-fluid-xs text-muted-900 rounded-lg border align-baseline font-mono shadow-sm;}