
Render iOS Keyboard
FreeCreate a static iOS QWERTY keyboard for mockups.
Free · Opens the source repo
What Render iOS Keyboard does
The Render iOS Keyboard skill provides developers with a straightforward way to integrate a static iOS QWERTY keyboard into their web applications, particularly useful for mockups involving messaging interfaces. This skill generates an HTML fragment and accompanying CSS that accurately represents the iOS keyboard layout, complete with a suggestion bar, alpha keys, and function keys like shift, backspace, and emoji. The keyboard is designed to fit within a specific screen size (750px wide), ensuring it looks right on devices that mimic iOS screens.
To use the skill, developers simply require the module and call the renderKeyboardHTML function with options for layout and suggestions. The layout can be set to lowercase, uppercase, or numbers, providing flexibility depending on the context of use. The suggestions feature allows for up to three text options to be displayed in the suggestion bar, enhancing the realism of the mockup. The keyboard is designed to be injected into the DOM without any JavaScript, relying solely on HTML and CSS, which makes it lightweight and easy to use alongside other components.
This skill is particularly beneficial for developers creating chat applications or any user interface that requires a typing input display. It allows for quick prototyping and visual testing, with a standalone CLI tool available for local visual review. The keyboard's design adheres to the iOS aesthetic, making it a reliable choice for projects that aim for authenticity in user interface design. Overall, the Render iOS Keyboard skill streamlines the process of adding a realistic keyboard interface to applications, saving time and reducing complexity in development.
When to use it
Use this skill when you need to display a typing interface in a mockup, particularly for messaging applications.
When not to use it
This skill is not suitable for dynamic keyboard interactions or animations, as it only renders a static keyboard.
What you can build with it
Integrating into Chat Applications
Use the Render iOS Keyboard skill to display a realistic keyboard in a chat application mockup, enhancing the user experience.
Prototyping UI Designs
Quickly prototype user interfaces that require a typing input display, ensuring your designs match iOS aesthetics.
Visual Testing of Keyboard Layouts
Utilize the standalone CLI tool to visually test different keyboard layouts and suggestions before finalizing your design.
How to install Render iOS Keyboard
View source1. Install with the skills CLI
npx skills add gooseworks-ai/goose-skills/render-ios-keyboard --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by gooseworks-airender-ios-keyboard
Purpose
Provide a drop-in iOS QWERTY keyboard fragment that pairs with messaging atoms (create-chatgpt-mockup, create-imessage-mockup) when a video needs to show someone typing. Static only: the keyboard sits at the bottom of the screen, the molecule's recorder slides it up/down with transform: translateY(...).
Inputs
const { renderKeyboardHTML, renderKeyboardCSS } = require('./generate');
const html = renderKeyboardHTML({
suggestions: ['"He"', 'Hey', 'Heating'], // optional, default ['I', 'The', "I'm"]
layout: 'qwerty-lower', // 'qwerty-lower' | 'qwerty-upper' | 'numbers'
});
The atom returns an HTML fragment (one <div class="ios-keyboard">…</div>) plus the matching CSS. The CSS uses scoped class names so it won't collide with the rest of the page.
Workflow
- Require the module.
const { renderKeyboardHTML, renderKeyboardCSS } = require('./generate');— no build step, no dependencies beyond Node'sfs/path. - Pick a layout.
renderKeyboardHTMLreadsopts.layoutand looks it up inROWS:qwerty-lower(default),qwerty-upper, ornumbers. An unknown layout silently falls back toqwerty-lower. The molecule decides which state to show; this atom never switches on its own. - Pass suggestions.
opts.suggestionsis an array of up to three strings rendered into the suggestion bar; each value is run throughescapeHTMLso quotes/angle brackets are safe. Omit it to get the default['I', 'The', "I'm"]. - Receive the fragment. The function returns a single root
<div class="ios-keyboard" data-layout="…">containing, in order: the.kb-suggestionsbar, three letter rows (row-110 keys,row-29 keys padded with two 18px spacers,row-3= shift/#+=modifier + 7 keys + backspace), therow-bottom(123/ABCswitch, emoji, widespace, return), and the.kb-system-rowglobe + mic strip. - Inject the CSS once. Call
renderKeyboardCSS()(which readstemplates/keyboard.cssfrom disk) and place it in a<style>block on the page. The molecule mounts the fragment at the bottom of the stage next to.composer-wrap. - Animate externally. The atom emits no JS and never sets a
transform. The owning molecule slides the keyboard in/out viatransform: translateY(...)on the.ios-keyboardroot (the CSS setswill-change: transformfor this). - (Optional) Preview standalone.
render.jswraps the fragment + CSS in a 750×1334 white.stageHTML page and writes it to--outfor eyeballing padding/colors.
CLI (for local visual testing)
node render.js --out /tmp/kb.html --suggestions 'I,The,I'\''m'
Produces a standalone HTML page with just the keyboard, useful for tweaking padding/colors.
Output
| Output | Shape |
|---|---|
renderKeyboardHTML(opts) | HTML string (one root <div class="ios-keyboard">) |
renderKeyboardCSS() | CSS string (scoped to .ios-keyboard *) |
The molecule injects these into the chatgpt-mockup page next to .composer-wrap.
Files
| File | Purpose |
|---|---|
generate.js | Returns {renderKeyboardHTML, renderKeyboardCSS} |
render.js | Standalone CLI for visual review |
templates/keyboard.css | All keyboard styling |
Quality checks
- Keyboard fits in 518px vertical space on the 750-wide stage (matches iOS QWERTY on a Pro-class iPhone)
- Three suggestion pills are visible above the keys with vertical dividers between them
- Shift, backspace are sized correctly (~10% wider than letter keys)
- Space bar reads as a single wide white pill
- Globe and mic at the very bottom edge of the keyboard, in the system tray strip
- No JS — pure HTML/CSS so the recorder can slide it without re-render
Known limitations
- No key-pop animation. When a key is pressed in the real keyboard, the letter renders larger above the row briefly. v1 skips this.
- Lowercase QWERTY default. Uppercase/numbers variants supported via
layoutbut are visual-only — the molecule decides which to show. - No emoji panel. The emoji button is rendered but doesn't expand.
Quality Checks
renderKeyboardHTML()returns a single root element starting with<div class="ios-keyboard"and carrying the matchingdata-layoutattribute (qwerty-lower|qwerty-upper|numbers).- The fragment contains exactly one
.kb-suggestionsbar, three letter rows (.row-1,.row-2,.row-3), one.row-bottom, and one.kb-system-row— in that DOM order. - Suggestion count and text match the
suggestionsarray (default['I', 'The', "I'm"]); the bar renders one.kb-suggestionspan per entry with vertical dividers between adjacent pills. qwerty-lowerrenders lowercase letters and a shift glyph;qwerty-upperrenders uppercase letters;numbersrenders the digit/symbol rows with the#+=modifier and anABCswitch key instead of123.- User-supplied strings are HTML-escaped — passing
'<b>'or'"He"'yields<b>/"He", never raw markup. renderKeyboardCSS()returns the full contents oftemplates/keyboard.css, scoped under.ios-keyboard, and the fragment carries no inlinestyleexcept the two 18pxrow-2spacer divs.- Rendered at 750px stage width, the keyboard occupies roughly 518px of vertical space; shift/backspace/
123/emoji/return modifier keys are visibly wider than letter keys;spaceis one wide white pill; the globe sits bottom-left and mic bottom-right in the system strip. - The output is pure HTML/CSS — no
<script>and no JS event handlers — so a recorder can slide it with a CSS transform without re-rendering.
Failure Modes
- Unknown
layoutvalue →ROWS[layout]isundefined, so the renderer silently falls back toqwerty-lower. Symptom: you asked for uppercase or numbers and got lowercase letters. Fix: pass exactly'qwerty-lower','qwerty-upper', or'numbers'. - More than three suggestions → every entry still renders as a
.kb-suggestion(theyflex: 1 1 0), so a long array squashes the pills and breaks the iOS-accurate 3-up layout. Keepsuggestionsto three or fewer; long strings are clipped withtext-overflow: ellipsis. - CSS not injected → calling
renderKeyboardHTML()without also emittingrenderKeyboardCSS()produces an unstyled stack of divs (no rounded keys, no gray tray). Always include both on the page. templates/keyboard.cssmissing or unreadable →renderKeyboardCSS()callsfs.readFileSyncand will throwENOENT. Run from a checkout wheretemplates/keyboard.csssits next togenerate.js.render.jsrun without--out→ the CLI prints the usage line and exits with code1; nothing is written. Always pass--out <path>.- Expecting animation or interactivity → there is none. No key-pop, no emoji panel, no caps-lock toggle. The molecule owns slide-up/down and which layout to show; this atom is static by design.
Frequently asked questions about Render iOS Keyboard
Similar skills
Playwright Component Testing
Test React and Vue components in isolation with Playwright.
Fluent UI Blazor
Integrate Fluent UI components in Blazor applications effortlessly.
Build MCP App
Create interactive UI widgets for MCP servers.
Web Design Reviewer
Identify and fix design issues in websites efficiently.
Markstream Install
Seamlessly integrate Markstream for Markdown rendering.
GSAP & Framer Scroll Animation
Create advanced scroll animations effortlessly.
