UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

21 lines (20 loc) 792 B
import React from 'react'; import { BaseComponentProps } from '../internal/base-component'; import { NonCancelableEventHandler } from '../internal/events'; export interface ModalProps extends BaseComponentProps { size?: ModalProps.Size; visible: boolean; closeAriaLabel?: string; header?: React.ReactNode; children?: React.ReactNode; footer?: React.ReactNode; onDismiss?: NonCancelableEventHandler<ModalProps.DismissDetail>; modalRoot?: HTMLElement; } export declare namespace ModalProps { type Size = 'small' | 'medium' | 'large' | 'max'; interface DismissDetail { reason: string; } } export default function Modal({ size, visible, closeAriaLabel, header, children, footer, onDismiss, modalRoot, ...rest }: ModalProps): React.ReactPortal;