UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

19 lines (18 loc) 408 B
import React from 'react'; import { PopupProps } from './Popup.interface'; /** * Popup component * * Usage: * `npm install apphouse` * * `import { Popup } from 'apphouse'` * * Toggle the popup to open in any component: * * ```tsx * const {openPopup} = useApphouse(); * * <Button onClick={() => { openPopup(popup) }}>Toggle Popup</Button>``` */ export declare const Popup: React.FC<PopupProps>;