Skip to content

Kbd

The Kbd component is used to represent user input from a keyboard, voice input, or any other text-entry device. It’s ideal for documentation, tutorials, or user interfaces where you need to clearly indicate which keys a user should press.

enter

Add the Kbd component to your project using the OrbitUI CLI:

Terminal window
npx orbitkit@latest add kbd

Import the Kbd component and place the key or key combination you want to display as its child.

The Kbd component renders a small box around its content, making it look like a physical key on a keyboard. This component accepts all the standard HTML attributes that a <kbd> element would.