0.4.6 • Published 3 years ago

@bdt-component-library/input-label v0.4.6

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

InputLabel 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 input labels according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
labelstringyesn/aThe text for the input label
hideLabelbooleannon/aSets whether the label is intended for screen readers only
htmlForstringyesn/aSets the label for attr
requiredbooleannofalseDetermines whether or not the label is for a required input
disabledbooleannofalseDetermines label disabled state
clickablebooleannofalseDetermines if the label should have cursor pointer effects
noBottomMarginbooleannofalseDetermines whether or not the label has a bottom margin
nativeRequiredbooleannofalseDetermines whether or not the label is for a required input
onClickfunction(e: event)no() => {}Event handler for onclick event on the label
0.4.6

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago