Docs
Keybord Simulation

Keybord Simulation

Keybord Simulation by TailwindCSS

Installation

Copy and paste the cn util code into your project.

import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
 
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
 

Copy and paste the Keyboard code into your project.

API Reference

Props

PropTypeDescription
classNamestringAdditional classes for the body.
childrenReact.ReactNodeThe content of the keybutton.
childrenClassNameReact.Dispatch<React.SetStateAction<boolean>>Additional classes for the keybutton.
lightenbooleandefault false. lighten keybutton.
butColorstringchange keybutton color,default text-white.