0.5.3 • Published 3 years ago

@bdt-component-library/date-field v0.5.3

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

DateField 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

This component extends the TextField component to provide a custom DateField component.

API

proptyperequireddefaultexplanation
classNamestringnon/aAdds an optional classname to the component
idstringnon/aAdds an optional id to the component
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
noBottomMarginbooleannofalseRemoves bottom margin of input for more control over formatting
placeholderstringnononeAllows default placeholder to show when input is empty
valuestringnonoInput value
onBlurfunction(e: event)no() => {}Event handler for onblur events
hasErrorbooleannofalseDetermines error state
readOnlybooleannofalseProperty that prevents the user from entering text in the input
0.5.3

3 years ago

0.5.0

4 years ago

0.5.2

3 years ago

0.5.1

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.3.0

4 years ago

0.1.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.4.0

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago