0.7.8 • Published 3 years ago

@lieinapril/utente-modal v0.7.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@lieinapril/utente-modal

Neumorphism - Modal dialogs.

Documentation

Refer to the following storybook.

Installation

Install guide

Install guide

npm install @lieinapril/utente-modal

Usage

import React from 'react';
import { Button } from '@lieinapril/utente-button';
import { Modal } from '@lieinapril/utente-modal';

const Example = () => {
  const args = { theme: "light", size: "medium" };
  const [isModalVisible, setIsModalVisible] = React.useState(false);
  const onToggle = () => setIsModalVisible(e => !e);

  return (
    <div style={{ display: "flex", gap: 20, backgroundColor: "#eee" }}>
      <Button onClick={onToggle}>
        Open Modal
      </Button>
      <Modal {...args} onCancel={onToggle} visible={isModalVisible}>
        <div>Some content...</div>
        <div>Some content...</div>
        <div>Some content...</div>
      </Modal>
    </div>
  );
}
0.7.8

3 years ago

0.7.7

3 years ago

0.7.5

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago