Loading component…
Loading component…
AI chat input that types itself over a glass keyboard, with a wave rising from the gradient floor on every key press
To reuse this local React demo, copy all files from the Code tab into the same folder, then import GlowKeyboard from ./glow-keyboard.
import { GlowKeyboard } from "@/components/ui/glow-keyboard";
export function Hero() {
return (
<section style={{ maxWidth: 1100, margin: "0 auto" }}>
<GlowKeyboard />
</section>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| prompts | string[] | three hiking prompts | Prompts the demo types one after another; each one is sent with Enter |
| placeholder | string | "Ask AI anything..." | Placeholder of the chat input |
| onSubmit | (text: string) => void | Called when a prompt is sent with Enter – by the demo or the user | |
| label | string | "AI chat input above a glass keyboard…" | Accessible name of the scene |
| className | string | Extra class on the root, e.g. for width or margins |
Keeps an 11 : 6 frame and scales to the width of its container – every detail is sized in container units
Set the background with --ui-gk-bg (default #fafafa, #111113 in dark mode)
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"