0.3.1 • Published 6 years ago

simple-react-popup v0.3.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

simple-react-popup

simple-react-popup makes it easy to pop up the react component.

Example

CodeSandbox

Description

import React from 'react';
import SimpleReactPopup from 'simple-react-popup';

class Sample extends React.Component {
  render() {
    const popupContents = (
      <div>
        hello world!
      </div>
    );

    return (
      <SimpleReactPopup contents={popupContents}>
        popup target
      </SimpleReactPopup>
    );
  }
}

export default Sample;

Options

interface Props {
  // Popup Target
  children: React.ReactNode;
  // Add Parent Dom Of Popup Target
  className?: string;
  // Popup Contents
  contents: JSX.Element;
  // Transition Duration (defined in milliseconds)
  transition?: number;
}

Remaining Task

  • Can apply styles from options.
  • Not use jquery.

Author

piro

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.1

6 years ago