0.7.0 • Published 3 years ago

@bdt-component-library/text-area v0.7.0

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

TextArea 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 tabs according to style guide.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the textarea
helperTextstringnonotextarea helper text
idstringyesnotextarea id attr
testIdstringno""Adds an optional data-testid for testing purposes
namestringnonotextarea name attr
valuestringnonotextarea value
defaultValuestringnonotextarea default value
disabledbooleannofalseDetermines input disabled state
inputRefanynonoReact ref for textarea
requiredbooleannofalseDetermines if the textarea is required
placeholderstringnonotextarea placeholder text
rownumberno5textarea row value
columnnumberno33textarea column value
hasErrorbooleannofalseDetermines if the textarea is in an error state (overrides success state)
hasSuccessbooleannofalseDetermines if the textarea is in a success state
onChangefunction(event)no() => {}Handles on change events within the textarea html element
minLengthnumbernoundefinedDetermines minimum number of characters that can be entered via the minlength textarea attr
maxLengthnumbernoundefinedDetermines maximum number of characters that can be entered via the minlength textarea attr
noBottomMarginbooleannofalseRemoves bottom margin of input for more control over formatting
readOnlybooleannofalseProperty that prevents the user from entering text in the input
showCharacterCountbooleannofalseProperty that adds a character count/maxLength indicator to the component
0.7.0

3 years ago

0.6.0

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.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