Socket
Book a DemoInstallSign in
Socket

@bdt-component-library/date-field

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdt-component-library/date-field

DateField component

latest
Source
npmnpm
Version
0.5.3
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts