1.0.10 • Published 5 years ago

@fenderdigital/react-text-field v1.0.10

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
5 years ago

TextField for Fender React UI Kit

Description

A compound component used to render input fields. It will also perform field validation..

Installation and Usage

yarn add @fenderdigital/react-text-field --save
import TextField from '@fenderdigital/react-text-field';

Props

  • autoComplete - enables / disabled this browser feature for input fields.
  • children - renders any child elements.
  • containerStyles - configurable tachyon classes.
  • dataId - data id value. mainly, for automation testing.
  • disabled - option to disable the input field.
  • errorMessage - error messaging that is rendered by FieldError.
  • initialValue - optional input field value.
  • value - Use to set input field value. Must be paired with onChange if TextField is to be updated after
  • inputStyles - configurable tachyon classes for the input field element.
  • onChange - onChange callback
  • onBlur - onBlur callback
  • onFocus - onFocus callback
  • onClick - onFocus callback
  • placeholder - text (or html) for the input field's placeholder attribute.
  • type - input field type
propNamepropTypedefaultValueisRequired
autoCompletestringoff-
childrennodenull-
containerStylesstring''-
dataIdstringtext-field-
disabledbooleanfalse-
errorMessagestringnull-
initialValuestring''-
valuestring''-
inputStylesstring''-
onChangefunc() => {}-
onBlurfuncnull-
onFocusfunc() => {}-
onClickfunc() => {}-
placeholdernode''-
typestringtext-

Development

Check the Monorepo README for development documentation.

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago