@rhc-shared-components/form-text-input
v5.0.3
Published
Text input component for certified technology apps
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-inputUsage
import { Formik, Form } from "formik";
import { FormTextInput } from "@rhc-shared-components/form-text-input";
const Example = () => {
return (
<Formik
initialValues={{ helloWorld: "this is a test text" }}
enableReinitialize={true}
onSubmit={() => {}}
>
<Form>
<FormTextInput
name="helloWorld"
label="helloWorld label"
helperText="helloWorld helper"
isRequired={true}
/>
</Form>
</Formik>
);
};Development
yarn dev # Start dev server
yarn build # Build library
yarn lint # Check with Biome
yarn lint-fix # Auto-fix with Biome