apphouse
Version:
Component library for React that uses observable state management and theme-able components.
25 lines (24 loc) • 566 B
TypeScript
import React from 'react';
import { PopupProps } from './Popup.interface';
export interface PopupContainerProps extends PopupProps {
/**
* The maximum height of the popup
*/
maxHeight?: string;
}
/**
* 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 PopupContainer: React.FC<PopupContainerProps>;