0.11.1 • Published 3 years ago

@bdt-component-library/masked-text-field v0.11.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

MaskedTextField Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of masked text fields according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringnon/aAdds an optional classname to the component
idstringnon/aAdds an optional id to the component
valuestringnonoInput value
defaultValuestringnonoInput default value
namestringnonoInput name attr
requiredbooleannofalseDetermines if the input is required
inputRefanynonoReact ref for input
helperTextstringnonoInput helper text
onChangefunctionnoundefinedEvent handler for onchange events
autoFocusbooleannofalseInput autoFocus attr
disabledbooleannoundefinedDetermines input disabled state
variantenum("phone", "phonePrivate, "ssn", "money", "date")no"phone"Determines masked text field type
noBottomMarginbooleannofalseRemoves bottom margin of input for more control over formatting
placeholderstringnononeAllows default placeholder to show when input is empty
leadingIconReact element OR falsenofalsePasses icon from MaskedTextField to TextField
onBlurfunction(e: event)no() => {}Event handler for onblur events
hasErrorbooleannofalseDetermines error state
readOnlybooleannofalseProperty that prevents the user from entering text in the input
0.11.1

3 years ago

0.11.0

3 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.6.2

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago