Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 596 Bytes

readme.md

File metadata and controls

34 lines (30 loc) · 596 Bytes

ModalFooter

The default modal footer for the Modal-component.

Usage

import { Modal, ModalFooter, Button } from '@folio/stripes/components';

const footer = (
  <ModalFooter>
    <Button
      buttonStyle="primary"
      onClick={() => {...}}
    >
      Save
    </Button>
    <Button onClick={() => {...}}>
      Cancel
    </Button>
  </ModalFooter>
);

<Modal
  open={true}
  label="Modal with ModalFooter"
  footer={footer}
>
  Modal Content
</Modal>

Props

Name type description default required
children Set of <Button>s.