1.3.14 • Published 7 years ago

react-jmodal v1.3.14

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

React-JModal

Simple and minimlistic react modal, open to escalability and manipulation to be as flexible as desired.

Usage:
For inline styles for modal, these must be passed as an object, as shown here:

export const modalStyles = {
    mdl: {
        position: 'absolute',
        top: '50%',
        left: '50%',
        zIndex: '9000',
        transform: 'translate(-50%, -50%)'
    }
};

The Object contains 4 keys:

  • mdl
  • mdlOut
  • overlay
  • overlayOut

The styles are received by the modal this way:

import React from 'react';
import ReactDOM from 'react-dom';
import ReactJModal from './ReactJModal';
import {data} from '../data';
import {modalStyles} from '../sass/modal_styles';

ReactDOM.render( <ReactJModal modalStyles = {modalStyles}>
		<div>
			<p>{data}</p>
		</div>
	</ReactJModal>, document.getElementById('app'));

Live Demo

https://jobarah.github.io/React-JModal/

1.3.14

7 years ago

1.3.14-0

7 years ago

1.3.12

7 years ago

1.3.11

7 years ago

1.3.10

7 years ago

1.3.9

7 years ago

1.3.8

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago