0.4.1 • Published 1 year ago

@rhc-shared-components/phone-number-input v0.4.1

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

@rhc-shared-components/phone-number-input

Form Text Input for Red Hat certified technology apps

NPM JavaScript Style Guide

Install

yarn add @rhc-shared-components/phone-number-input

Usage

import React from 'react';
import { Formik } from 'formik';
import { Title } from "@patternfly/react-core";
import { FormTextInput } from "@rhc-shared-components/form-text-input";

const Component = () => {
  const FieldName = 'helloWorld';
  return (
    <div>
      <Title headingLevel={'h1'}>Text Input with formik</Title>
      <Formik
        initialValues={{
          [FieldName]: 'this is a test text'
        }}
        enableReinitialize={true}
        onSubmit={() => {
        }}>
        <FormTextInput
          name={FieldName}
          label={'helloWorld label'}
          helperText={'helloWorld helper'}
          isRequired={true}
        />
      </Formik>
    </div> );
}

License

MIT © gautamkrishnar

0.4.1

1 year ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago