mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Including missing props according to react-aria-modal's doc; Fixing return type of RenderTo * Removing auto-generated file to comply with npm test result * 4 spaces; Changed version * Delete 2.1.0
24 lines
572 B
TypeScript
24 lines
572 B
TypeScript
import AriaModal from 'react-aria-modal';
|
|
import * as React from 'react';
|
|
import { render } from 'react-dom';
|
|
|
|
declare const appContainer: HTMLElement;
|
|
|
|
const onExit = () => {};
|
|
|
|
render(
|
|
<AriaModal onExit={onExit} titleId="describedby" underlayClickExits>
|
|
<p id="describedby">Hello world</p>
|
|
</AriaModal>,
|
|
appContainer
|
|
);
|
|
|
|
const DisplacedModal = AriaModal.renderTo('#some-id');
|
|
|
|
render(
|
|
<DisplacedModal onExit={onExit} titleId="describedby" underlayClickExits>
|
|
<p id="describedby">Hello world</p>
|
|
</DisplacedModal>,
|
|
appContainer
|
|
);
|