Edit page
Home
Getting Started
Components
Forms
AddressSmartInputAsyncCreatableSelectAsyncSelectCheckboxCreatableSelectCurrencyInputDropzoneDropzoneImagesFormErrorFormLabelImageCropInputGroupNumberInputPasswordInputPhoneInputRadioSelectSliderInputTextInputTextMaskInputPropsExamplesTextareaToggle
Typography
Utilities
Visualization Components

TextMaskInput

This is a simple text masking component. In other words, a text input with a controlled value. i.e. credit cards, phone numbers, dates, etc...

Props

className
String
disabled
Bool
error
Bool
forwardedRef
Custom
guide
Bool
true
mask
Array<Class(RegExp) │ string> │ Function
required
name
String
required
onChange
Func
required
placeholderChar
String
showMask
Bool
true
size
'small' │ 'medium' │ 'large'
'large'
value
string │ number

Examples

Default Usage