Skip to content

Number Pad

Pro

A large keypad for typing numbers on a touch screen. It sends digits, the decimal key of the locale, and delete to the field it drives.

  • React 19
  • Tailwind CSS 4

Added Nov 12, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Number Pad needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
9
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Render one key for each name of the layout, and apply each key to your own text with applyNumberPadKey.

amount-pad.tsx

NumberPad

<fieldset>
PropTypeDefaultDescription
disabledbooleanfalseTurn the whole pad off (a swap in flight).
size"default""sm""default"
onKey—Called with each key: a digit, decimal, delete, or clear (a held delete, or the Delete key). The pad owns no value: apply the key to your own value (applyNumberPadKey).
localestring—The locale of the decimal key: . in en-US, , in de-DE. Default "en-US".
decimalbooleantrueShow the decimal key. false for a PIN or whole units: its place stays empty. Default true.
disabledKeysIterable<NumberPadKeyName>—Keys that do nothing now (blockedNumberPadKeys): no decimals left, nothing to delete.
childrenReactNode—The keys. Default: the 12 keys of a phone pad.
...props<fieldset> attributes—Every other attribute goes to the <fieldset>, with a ref.

NumberPadKey

<button>
PropTypeDefaultDescription
childrenReactNode—The face. Default: the digit, the locale decimal sign, or the delete icon.
valueRequired"0""1""2""3""4""5""6""7""8""9""clear""decimal""delete"—The key this button sends.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use it under an amount on a phone, where the system keyboard covers the screen.
  • Keep the value in your own state and apply each key with applyNumberPadKey.
  • Pass blockedNumberPadKeys to disabledKeys, so keys that do nothing now show as off.
Arrow keysMove between keys; keys that are off are skipped.
0-9orperiodorcommaPress the digit or the decimal key.
BackspacePress delete.
DeletePress clear.
Press
press · the key fills and scales to 0.96
  1. AddedNumber Pad.
Open the release