0.1.5 • Published 1 year ago

@rhc-shared-components/form-text-input v0.1.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

@rhc-shared-components/form-text-input

Form Text Input for Red Hat certified technology apps

NPM JavaScript Style Guide

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