Rebar UI

1.0

opinion

NumberKeyboard

An on-screen numeric keypad in a bottom sheet, for PINs and amounts.

Unlock TidelineFour digits, keys shuffled each time it opens

----

Decimal key

Nothing typed

Fixed order

Nothing typed

Confirm label

Nothing typed

In context

On a phonePIN lock, and an amount entry for an expense
Unlock Tideline

Crew inbox is locked on this phone.

Enter your PIN

Log expense

Quay Marine Supplies

£1,240

Nothing typed

Props

PropTypeRequiredDefault
openboolean | undefinedNo—
defaultOpenboolean | undefinedNofalse
onOpenChange((open: boolean) => void) | undefinedNo—
titleReactNodeNo—
onInput(digit: string) => voidYes—
onDelete() => voidYes—
onConfirm(() => void) | undefinedNo—
confirmLabelstring | undefinedNo—
customKeystring | undefinedNo—
randomOrderboolean | undefinedNofalse
closeOnConfirmboolean | undefinedNotrue
classNamestring | undefinedNo—

data-rebar-* attributes

data-rebar-component="number-keyboard" on the keypad grid (the sheet itself carries BottomSheet's own data-rebar-component="bottom-sheet"); parts: key, custom-key, delete-key, confirm.

Migrating to Ant Design

Not codemod-covered — the antd-mobile pattern, no direct AntD desktop equivalent (a desktop form just uses the browser's own numeric input).