@gpa-gemstone/react-interactive
Version:
Interactive UI Components for GPA products
35 lines (34 loc) • 922 B
TypeScript
import * as React from 'react';
interface IProps {
/**
* Title displayed when the drawer is closed but hovered over
*/
Title: string;
/**
* Indicates the initial state of the drawer
*/
Open: boolean;
/**
* Location of the drawer in the component refferenced
*/
Location: 'left' | 'right' | 'top' | 'bottom';
/**
* This will be called with a callback to set the Drawer to open or closed form the parent
* @param func
* @returns
*/
GetOverride?: (func: (open: boolean) => void) => void;
/**
* Callback when the Drawer changes
* @param open
* @returns
*/
OnChange?: (open: boolean) => void;
/**
* The data-drawer property of the target containing the drawer
*/
Target: string;
HideHandle?: boolean;
}
declare const OverlayDrawer: React.FunctionComponent<IProps>;
export default OverlayDrawer;