1.0.0-alpha.2 • Published 4 years ago

@talixo/form-field v1.0.0-alpha.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Talixo FormField

UI Component which represents FormField

How to install

Package is available as @talixo/form-field in NPM registry, so you can use it in your project using npm install @talixo/form-field --save or yarn add @talixo/form-field.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/checkbox: ^0.1.0
  • @talixo/number-input: ^0.1.0
  • @talixo/shared: ^0.1.0
  • @talixo/text-input: ^0.2.0
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/form-field, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Property nameTypeDefaultDescription
classNamestringn/aAdditional class name passed to wrapper.
errornoden/aDisplayed error message.
hintnoden/aDisplayed hint message.
idstringn/aId for input.
labelnoden/aLabel for input.
onBlurfunctionn/aEvent called after input has lost focus.
onChangefunctionn/aEvent called after input has been changed.
onFocusfunctionn/aEvent called after input has gained focus.
warningnoden/aDisplayed warning message.
valueanyn/aValue passed to input.

Changelog

  • 0.1.0 - initial version
1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.2

4 years ago