0.8.8 • Published 4 years ago

react-plugin-popup v0.8.8

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

React Popup Plugin

Easy to Popup provider for react


description: 'Global. Has context. Stacks windows.' labels: 'Popup', 'UI', 'react', 'typescript'


import { Popup } from './popup';

Introduction

Create new Popup Element

All need for creating such element is a valid JSX.Element:

// Arrow function
const PopupElement = () => ":3"
// Standart function
function PopupElement() {
	return ":3"
}

Using Popup Context

const PopupElement = () => {
	const { Resolve, Params } = usePopupContext()
	return ":3"
}

Component usage

Using props to customize the text

Modify the text to see it change live:

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago