2.0.3 • Published 3 years ago

sbx-react-modal-burlak v2.0.3

Weekly downloads
21
License
-
Repository
-
Last release
3 years ago

SBX React Modal

sbx i --save sbx-react-modal-burlak
import Modal from 'sbx-react-modal-burlak';
<Modal
	dark
	title={'Hi!'}
	className={'my-modal'}
	opened={this.state.bool}
	maxWidth={400}
	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);
		}
	}]}
>
	Test modal
</Modal>
2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

0.0.1

4 years ago

2.0.0

4 years ago

0.0.12

4 years ago