jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
35 lines (34 loc) • 1.18 kB
TypeScript
import React from 'react';
import { SpaceProps } from 'styled-system';
declare type BaseModalProps = SpaceProps;
export interface ModalProps extends BaseModalProps {
/**
* Contents to render inside the modal.
*/
children: React.ReactNode;
/**
* If the modal is currently visible.
*/
isShown: boolean;
/**
* Callback for when hidding. Called for example when user hits escape.
*/
onHide: () => void;
/**
* If a close button should be automatically added.
*
* @default "true"
*/
showClose?: boolean;
/**
* Hover text shown on close button.
*
* @default "Close"
*/
closeTitle?: string;
}
export declare const dialogStyles: import("styled-components").FlattenInterpolation<any>;
export declare const GlobalDialogStyle: import("styled-components").GlobalStyleComponent<any, import("styled-components").DefaultTheme>;
export declare const StyledCloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
export declare const Modal: ({ children, isShown, onHide, showClose, closeTitle, ...props }: ModalProps) => JSX.Element;
export default Modal;