0.6.5 • Published 2 years ago

@bdt-component-library/file-upload v0.6.5

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

FileUpload 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 file upload.

API

proptyperequireddefaultexplanation
classNamestringnon/aAdds an optional classname to form if using form and to label
disabledbooleannoundefinedDetermines input disabled state
variantenum("solid", "outlined", "text")no"solid"Determines the button style variant
idstringyesnoInput id attr
helperTextstringnoundefinedAdds optional helper text for input
requiredbooleannoundefinedDetermines if the checkbox input is a required field
nativeRequiredbooleannoundefinedDetermines if the checkbox input is a required field (native)
namestringnonoInput name attr
labelstringyesnoInput label text
loadingbooleannoundefinedDetermines input loading state
inputRefanynoundefinedAllows specifying react ref for input
onChangeActionfunction("File", "FileReader")noundefinedEvent handler for onloadend events
withFormbooleannotrueDetermines if the input occurs as part of a form
noBottomMarginbooleannofalseDetermines whether or not there is a bottom margin around FileUpload
0.6.5

2 years ago

0.6.4

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.5.4

3 years ago

0.5.5

3 years ago

0.6.0

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.5

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