Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 648 Bytes

File metadata and controls

21 lines (18 loc) · 648 Bytes

<Button /> Component

This component is represents button for <Form />. It requires context which is provided by <FormGroup />.

Usage

<Form {...FormProps}>
    <FormGroup {...FormGroupProps}>
        <Button
            action="button clicked"
            activeClassName="is-active"
            {...HTMLButtonElementProps}
        />
    </FormGroup>
</Form>

where:

  • action - value, that passed to model. Requried.
  • activeClassName - className that attaching when action prop value is the same as value in model. Optional. Default - is-active.