Skip to content

iOS Keyboard

Free

The iOS 26 keyboard for a phone mockup: the predictive bar, letter keys that pop as the text grows, and automatic shift, in light and dark.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put it at the foot of a phone screen, with the text of the field.

search-screen.tsx

IosKeyboard

<div>
PropTypeDefaultDescription
appearance"dark""light""system"—
typedstring""The text typed so far. Each new character pops its key, a shorter text presses delete, and shift follows the iOS capitals: on at the start and after a sentence ends.
shiftboolean—Forces shift on or off instead of following the text.
suggestionsreadonly [string, string, string]DEFAULT_SUGGESTIONSThe three words in the predictive bar. Default "I", "The", "I’m".
pressednull"123""delete""return""shift""space"stringnullA key held down: a letter, or shift, delete, return, space, 123.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass the field text to typed: each new character pops its key, and a shorter text presses delete.
  • Pass suggestions for the predictive bar: the word as typed in quotes, then two words.
  • Use appearance="dark" or "light" when the app differs from the page theme.
  • To show a shortcut on desktop keys, use Kbd.

The keyboard is a picture of system UI, hidden from screen readers.

Key pop
instant · the key callout shows at once and fades in 60ms after 140ms, so each new character pops its key
Special keys
instant · space and delete take the pressed color for 140ms, then fade in 60ms
  1. AddediOS Keyboard.
Open the release