formik-reactstrap
TypeScript icon, indicating that this package has built-in type declarations

2.0.3-beta • Public • Published

Formik components made with reactstrap

npm package

codesandbox

alt

Getting Started

Installing

npm i formik yup bootstrap reactstrap formik-reactstrap

Components

<Input/> and <InputArray/>

<Input type="text" name="name" title="Name" formikProps={props} />
<InputArray type="text" name="names" title="Names" formikProps={props} />

Props:

  • name: string
  • title?: string
  • type?: string
  • formikProps: FormikProps<Values>
  • className?: string

<Select/>

<Select
  name="color"
  title="Color"
  options={[
    { text: 'Red'; value: '#f00' },
    { text: 'Green'; value: '#0f0' },
    { text: 'Blue'; value: '#00f' },
  ]}
  formikProps={props}
/>

Props:

  • name: string
  • title?: string
  • options: <{ text: string; value: string }>[]
  • formikProps: FormikProps<Values>
  • className?: string

<Switch/>

<Switch name="employed" title="Employed" formikProps={props} />

Props:

  • name: string
  • title?: string
  • formikProps: FormikProps<Values>

<Textarea/>

<Textarea name="description" title="Description" formikProps={props} />

Props:

  • name: string
  • title?: string
  • formikProps: FormikProps<Values>
  • className?: string

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i formik-reactstrap

    Weekly Downloads

    13

    Version

    2.0.3-beta

    License

    MIT

    Unpacked Size

    67.3 kB

    Total Files

    29

    Last publish

    Collaborators

    • sagarpanchal