content
Tailwind CSS keyboard
The Keyboard component showcases keyboard keys, allowing you to present custom-designed keys that enhance the overall user interface.
Use the component class kbd
to display the keyboard shortcut.
A
B
C
D
Add responsive class kbd-{size}
where {size} = xs|sm|lg
for different sizes.
Ctrl
Ctrl
Ctrl
Ctrl
Use kbd’s in text to illustrate keyboard shortcuts.
Press Enter to continue.
Use the +
sign to display key combinations.
Ctrl+Shift+Delete
Use special characters to display function keys.
⌘
⌥
⇧
⌃
F1
F2
F3
F4
Use the flex
and justify-center
utility classes to display a full keyboard.
q
w
e
r
t
y
u
i
o
p
a
s
d
f
g
h
j
k
l
z
x
c
v
b
n
m
,
Use the flex
and justify-center
utility classes to display arrow keys.
Use kbd with numbers to display number keys.
0
1
2
3
4
5
6
7
8
9