Components
← All components

Input Mask

stimeo--input-mask

Shapes what you type into a fixed pattern, leaving the caret exactly where you put it.

  • Core

Shapes a fixed-format entry such as a phone or postal number as you type. Brackets and dashes are added for you, and a character that cannot go in that position is not accepted. The caret stays put: a rejected keystroke leaves it where it was, and deleting across a separator removes one character at a time rather than standing still. Text being converted by a Japanese input method is left alone, and full-width digits are taken as their plain form only where that position accepts them. The screen shows the shaped value while your server receives it without the punctuation. A read-only field keeps whatever the page rendered.

running

Digits only. The brackets, space and dash are added for you.

Raw value sent to the server: (empty)

Keyboard

This component has no keyboard interactions of its own.