Skip to content

team-griffin/redux-form-debounce-field

Repository files navigation

redux-form-debounce-field

A variant of redux-form's <Field> component, but with a debounce feature that delay's the field's onChange event from triggering.

Usage

import DebounceField from 'redux-form-debounce-field';

const MyInput = ({
  input,
  meta,
  ...rest
}) => (
  <input
    {...input}
    {...rest}
  />
);

const MyForm = () => (
  <DebounceField
    wait={250}
    component={MyInput}
  />
);

Props

| Prop | Type | Description | Default | | wait | number | The debounce delay | 250 |

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published