1.0.0 • Published 2 years ago

@vygruppen/spor-modal-react v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Modal (React)

Use to create modals and dialogs

Installation

$ npm install @vygruppen/spor-modal-react

Usage

import {
  Modal,
  ModalOverlay,
  ModalContent,
  ModalCloseButton,
  ModalHeader,
  ModalBody,
  ModalFooter,
} from "@vygruppen/spor-modal-react";

Put together your own modal like this:

<Modal isOpen={isOpen} onClose={onClose}>
  <ModalOverlay />
  <ModalContent>
    <ModalCloseButton />
    <ModalHeader size="lg">Example</ModalHeader>
    <ModalBody>
      <Text>Lorem slipsum 👔</Text>
    </ModalBody>
    <ModalFooter>
      <Button variant="primary" onClick={onClose} isFullWidth>
        Ok.
      </Button>
    </ModalFooter>
  </ModalContent>
</Modal>

There are lots of props you can specify.

Development

Please refer to the root readme for development notes.

1.0.0

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago