1.0.10 • Published 4 years ago

burlak-react-modal v1.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Burlak React Modal

npm i --save burlak-react-modal
import Modal from 'burlak-react-modal';
<Modal
	className={'my-modal'}
	theme="some-unique-id-for-customize"
	dark
	centered
	title={'Hi!'}
	opened={this.state.bool}
	maxWidth={400}
	beforeSHow={(instance) => {}}
	beforeHide={(instance) => {}}
	onShow={(instance) => {}}
	onHide={(instance) => {
		this.setState({
			bool: false
		});
	}}
	buttons={[{
		text: 'Cancel',
		type: 'error',
		onClick: (e, instance) => {
			console.log(e, instance);
		}
	},{
		text: 'Send',
		type: 'success',
		onClick: (e, instance) => {
			console.log(e, instance);
		}
	},{
		text: 'One more button',
		tag: 'a',
		attributes: {
			href: '#',
			target: '_blank'
		},
		hidden: true
	}]}
>
	Test modal
</Modal>
1.0.10

4 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago