@invisionag/iris-react-modal

6.5.2 • Public • Published
import {
  Modal,
  ModalClose,
  ModalBody,
  ModalHeader,
  ModalFooter
} from '@invisionag/iris-react-modal';

The modal component is based on https://github.com/reactjs/react-modal, you should follow the documentation of the project.

Usage:

closeHandler, isOpen, contentLabel are required props. The Modal component is a container component and has to have ModalHeader, ModalBody, ModalFooter as children.

<Modal
  closeHandler={this.handleCloseModal}
  isOpen={boolean}
  contentLabel="A11y label"
>
  <ModalHeader>Headline</ModalHeader>
  <ModalBody>
    Information text
  </ModalBody>
  <ModalFooter>
    <Button onClick={this.handleCloseModal}>
      Cancel button
    </Button>
    <Button danger>Confirm button</Button>
  </ModalFooter>
</Modal>

Readme

Keywords

none

Package Sidebar

Install

npm i @invisionag/iris-react-modal

Weekly Downloads

79

Version

6.5.2

License

MIT

Unpacked Size

34.3 kB

Total Files

15

Last publish

Collaborators

  • jj-ivx
  • ivx-github
  • jana_hehr
  • roberter26
  • birgithorn
  • alexj-ivx
  • amft
  • aitortomas
  • yashabfaryal0322
  • nleinich
  • johannesluedke
  • pgotthardt-ivx
  • hrabe
  • plore_ivx
  • patricialieske
  • plaudel
  • mblumtritt
  • sruehlemann
  • brerx
  • mohamedmmahfouz
  • mbrendler
  • jens.zobel
  • cwaider
  • kattelans
  • ftrautmann
  • lutz.peukert
  • fruetel
  • schmitze333
  • csprle
  • beckerei
  • stefan.schiffer
  • ahx
  • cloudwaechter
  • tobias
  • alexmarold
  • t_klepzig
  • susahope
  • mwannewitz
  • ivx-circle-ci
  • yichang
  • ivx-jenkins