Animated Keyboard

Displays an animated keyboard with keycaps that can be customized with different colors and variants.

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/animated-keyboard.json

Examples

Usage

import { Keyboard, Keycap, KeyRow, } from "@/components/ui/animated-keyboard";
<Keyboard className="w-full max-w-lg"> <KeyRow> <Keycap char="Q" height="42px" /> <Keycap char="W" height="42px" /> <Keycap char="E" height="42px" /> <Keycap char="R" height="42px" /> <Keycap char="T" height="42px" /> <Keycap char="Y" height="42px" /> <Keycap char="U" height="42px" /> <Keycap char="I" height="42px" /> <Keycap char="O" height="42px" /> <Keycap char="P" height="42px" /> </KeyRow> </Keyboard>

Props

Keyboard props.

KeyRow props.

Keycap props.