A chat prompt that types itself above a tilted glass keyboard. Each key lights as it is pressed and sends a soft wave across the Gradient Floor under it, then the prompt is sent and the next one starts.
On this page
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- prompts
string[]- Default
three agent prompts - Typed one after the other, then round again. Keep each under about 76 characters: the card shows two lines.
- layout
"qwerty"|"qwertz"|"azerty"|string[]- Default
"qwerty" - Letter rows, centred, with a space bar under them. Your own: ["qwfpg", "arstd", "zxcvb"]. A character that is not on the layout lights nothing and sends its wave from the middle.
- speed
number- Default
1 - Typing speed multiplier, about 12 characters a second at 1.
- color
string- Default
"#6366f1" - Accent of the lit key, the send button and the floor: a theme token, a CSS variable or any CSS colour.
- floor
boolean- Default
true - Draw a Gradient Floor under the keyboard and send it a wave at each key's position.
- onKey
(key: string, x: number) => void- Every key press, with the key's centre as a fraction of the width: pulse your own Gradient Floor, play a sound, count keys.
- once
boolean- Default
false - Type the first prompt once and stop, with no send.
- paused
boolean- Default
false - Stops the typing where it is. It also stops offscreen and in hidden tabs, and carries on in place.
- label
string- The accessible description. Default lists the prompts.
- className
string- On the root, a 16:11 box that fills its container. Sizes use container units, so it scales.
- Motion
-- One timer step per character, a CSS transition per key and one short wave on the floor: no frame loop, so it stays cheap. Reduced motion: the first prompt, fully typed, nothing lit, a still floor.
| Prop | Type | Default | Description |
|---|---|---|---|
| prompts | string[] | three agent prompts | Typed one after the other, then round again. Keep each under about 76 characters: the card shows two lines. |
| layout | "qwerty" | "qwertz" | "azerty" | string[] | "qwerty" | Letter rows, centred, with a space bar under them. Your own: ["qwfpg", "arstd", "zxcvb"]. A character that is not on the layout lights nothing and sends its wave from the middle. |
| speed | number | 1 | Typing speed multiplier, about 12 characters a second at 1. |
| color | string | "#6366f1" | Accent of the lit key, the send button and the floor: a theme token, a CSS variable or any CSS colour. |
| floor | boolean | true | Draw a Gradient Floor under the keyboard and send it a wave at each key's position. |
| onKey | (key: string, x: number) => void | - | Every key press, with the key's centre as a fraction of the width: pulse your own Gradient Floor, play a sound, count keys. |
| once | boolean | false | Type the first prompt once and stop, with no send. |
| paused | boolean | false | Stops the typing where it is. It also stops offscreen and in hidden tabs, and carries on in place. |
| label | string | - | The accessible description. Default lists the prompts. |
| className | string | - | On the root, a 16:11 box that fills its container. Sizes use container units, so it scales. |
| Motion | - | - | One timer step per character, a CSS transition per key and one short wave on the floor: no frame loop, so it stays cheap. Reduced motion: the first prompt, fully typed, nothing lit, a still floor. |
When to use
When to use
- A hero or onboarding scene that shows what typing a prompt to your product feels like.
- A launch page where the keys, the prompt and the lit floor tell the story without a screenshot.
When not to use
- A real chat input: it only plays a script, nothing is typed into it: use Chat Composer.
- A quieter card illustration: use Tab Overload.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Prompt Keyboard to my app and wire it to my own data.
- I need a hero or onboarding scene that shows what typing a prompt to your product feels like. Set that up with the Knowns UI Prompt Keyboard.
- Which Prompt Keyboard props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "prompt-keyboard" }) and search_docs({ query: "prompt keyboard" }). Pro props, full examples and source come back once your license key is in the MCP config.