1.3.0 • Published 8 years ago

deku-popup v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

deku-popup

Popup/modal component for deku

Install

$ npm install deku-popup

Usage

import Popup from 'deku-popup';

const openPopup = setState => {
	setState({open: true});
};

const render = ({state}, setState) => (
	<div>
		<Button onClick={openPopup(setState)}>Open popup!</Button>
		<Popup open={state.open}>
			<h1>Hello world!</h1>
		</Popup>
	</div>
);

export default {render};

API

<Popup/>

onClickOutside

Type: Function

Function to call when clicking outside the popup.

open

Type: boolean Default: false

Whether to show the popup upon the initial render.

License

MIT © Kevin Mårtensson

1.3.0

8 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago