Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Kbd

Used to show key combinations for an action

SourceStorybookRecipe
Shift + Tab

Anatomy

import { Kbd } from '@saas-ui/react'
<Kbd>F12</Kbd>

Examples

Combinations

Render Kbd to showcase key combinations

ctrl+shift+del

Function Keys

Here's an example of using Kbd to showcase function keys

Variants

Use the variant prop to change the appearance of the Kbd component

Shift + TabShift + TabShift + TabShift + Tab

Sizes

Use the size prop to change the size of the Kbd component

Shift + TabShift + TabShift + Tab

Within Text

Use Kbd within text to highlight key combinations

Press F12 to open DevTools

Props

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

variant 'subtle'
'raised' | 'outline' | 'subtle' | 'plain'

The variant of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

Previous

Highlight

Next

Link