Kbd#

Kbd is used to display keyboard keys and shortcuts.

Import#

TSX
import { Kbd } from '@sigx/daisyui';

Basic Usage#

Display individual keyboard keys.

TSX
Loading preview...

Sizes#

Kbd supports five sizes: xs, sm, md, lg, and xl.

TSX
Loading preview...

Inline Context#

Use Kbd inline with text.

TSX
Loading preview...

Key Combinations#

Display keyboard shortcuts with multiple keys.

TSX
Loading preview...

Function Keys#

Display macOS-style modifier keys.

TSX
Loading preview...

Arrow Keys#

Display arrow key layout.

TSX
Loading preview...

Full Keyboard Layout#

Display a full QWERTY keyboard row.

TSX
Loading preview...

Props#

PropTypeDefaultDescription
size'xs' | 'sm' | 'md' | 'lg' | 'xl'-Key size
classstring-Additional CSS classes