@atlaskit/modal-dialog
Version:
A modal dialog displays content that requires user interaction, in a layer above the page.
27 lines (26 loc) • 939 B
TypeScript
/** @jsx jsx */
import React from 'react';
import { jsx } from '@emotion/react';
export interface ModalHeaderProps {
/**
* Children of modal dialog header.
*/
children?: React.ReactNode;
/**
* A `testId` prop is provided for specified elements,
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
* serving as a hook for automated tests.
*/
testId?: string;
}
/**
* __Modal header__
*
* A modal header contains the title of the modal and can contain other React elements such as a close button.
*
* - [Examples](https://atlassian.design/components/modal-dialog/examples#modal-header)
* - [Code](https://atlassian.design/components/modal-dialog/code#modal-header-props)
* - [Usage](https://atlassian.design/components/modal-dialog/usage)
*/
declare const ModalHeader: (props: ModalHeaderProps) => jsx.JSX.Element;
export default ModalHeader;