Keyboard

Interactive keyboard component with customizable key styling and a beautifully minimal interface.

Loading...

Installation

npx shadcn@latest add @scrollxui/keyboard 

Usage

import Keyboard from "@/components/ui/keyboard";
<Keyboard
     showWASD={true}
     wasdColorClassName="text-green-500"
     wasdKeyShadowClassName="shadow-green-500"
    />

Examples


Text Color

Loading...

Key Shadow

Loading...

Game Mode

Loading...

API Reference

Keyboard

Interactive keyboard component with customizable key styling and a beautifully minimal interface.

Props

PropertyTypeDefaultDescription
classNamestring—
Custom classes applied to the keyboard wrapper container.
containerClassNamestring—
Custom classes applied to the outermost background container.
showWASDbooleanfalse
Highlights the W, A, S, D keys when enabled (useful for gaming UI).
wasdColorClassNamestring—
Custom text color classes applied specifically to highlighted WASD keys.
wasdKeyShadowClassNamestring—
Custom shadow class applied to highlighted WASD keys.
textClassNamestring—
Overrides text styling for all key labels.
keyShadowClassNamestring—
Overrides the default key shadow styling for all keys.

Built withby Ahdeetai.