Skip to main content

Shortcut

Component for displaying keyboard shortcuts and key combinations. Renders a semantic `<kbd>` element and supports interactive and static variants.

Import

import { Shortcut } from '@vortexlabs/vortex';
import type { ShortcutProps } from '@vortexlabs/vortex';

Display

<Shortcut>⌘K</Shortcut>

Allied components

Other links

Component properties
PropTypeDefaultAttributes
children
React.ReactNode
No default value
type
union
outline
size
union
md
active
boolean
No default value
onClick
function
No default value
ariaLabel
string
No default value
className
union
No default value
attributes
object
No default value