Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 576 Bytes

SlowSubmitButton.md

File metadata and controls

19 lines (16 loc) · 576 Bytes

<SlowSubmitButton /> Component

This component is represents button with type submit for <Form /> with delay. It requires context which is provided by <Form />.

Usage

<Form {...FormProps}>
    <SlowSubmitButton  
        {...HTMLButtonElementProps}
        loadingComponent={<span>...</span>}
        duration={500}
    />
</Form>

where:

  • loadingComponent - markup, that attaching to button on submit. Required.
  • duration - time, that button be in loading state. Optional. Default - 500.