@rhc-shared-components/form-text-input
v2.0.2
Published
Text input component for certified technology apps
Downloads
214
Keywords
Readme
@rhc-shared-components/form-text-input
Form Text Input for Red Hat certified technology apps
Install
yarn add @rhc-shared-components/form-text-input
Usage
import React from 'react';
import { Formik } from 'formik';
import { FormTextInput } from "@rhc-shared-components/form-text-input";
const Example = () => {
const FieldName = 'helloWorld';
return (
<Formik
initialValues={{
[FieldName]: 'this is a test text'
}}
enableReinitialize={true}
onSubmit={() => {
}}>
<FormTextInput
name={FieldName}
label={'helloWorld label'}
helperText={'helloWorld helper'}
isRequired={true}
/>
</Formik> );
}
License
MIT © gautamkrishnar