@tpr/forms
v5.0.0
Published
TPR Forms components
Downloads
34
Keywords
Readme
@tpr/forms
Form components for TPR apps.
Installation
npm install @tpr/forms
# Peer Dependencies - Also Required
npm install react react-dom @tpr/core @tpr/icons @tpr/theming
Helpers
validate: (fields: FieldProps[]) => (formValues) => errors object
: validate function helper forreact-final-form
Form component.renderFields: (fields: FieldProps[]) => ReactElement[]
: renders a vertical list of fields from the fields array. Has to be used as a child of Form component.
Components
- AddressLookup
- Checkbox
- Currency
- Date
- Hidden input
- Input
- Number
- Phone
- Radio
- Select
- Text