1.0.0 • Published 7 months ago

react-dialogues v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

react-dialogues

Tests npm version npm bundle size

Simple but flexible modal dialog library inspired by Ant Design

WIP! The project is still in beta stage

import { CancelButton, Modal, OkButton } from 'react-dialogues';

export default function App() {
  return (
    <Button
      onClick={async () => {
        const result = await Modal.info({
          title: 'Information',
          content: 'Example',
          buttons: [<Modal.OkButton />, <Modal.CancelButton />],
        });

        if (result === 'ok') {
          console.log('Ok button clicked');
        } else {
          console.log('Cancel button clicked');
        }
      }}
    >
      Show Modal
    </Button>
  );
}
0.1.0

9 months ago

1.0.0

7 months ago

0.3.0

7 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.2.4

8 months ago

0.0.1

12 months ago

0.0.2

12 months ago

0.0.0

1 year ago