Debian Codegraph @

node/@patternfly/react-core/dist/js/deprecated/components/Modal/ModalContent.d.ts

raw
1 /// <reference types="react" />
2 import { OUIAProps } from '../../../helpers';
3 export interface ModalContentProps extends OUIAProps {
4 /** Action buttons to add to the standard modal footer. Ignored if the footer property
5 * is passed in.
6 */
7 actions?: any;
8 /** Id to use for the modal box descriptor. */
9 'aria-describedby'?: string;
10 /** Accessible descriptor of the modal. */
11 'aria-label'?: string;
12 /** Id to use for the modal box label. */
13 'aria-labelledby'?: string | null;
14 /** Id of the backdrop. */
15 backdropId?: string;
16 /** Accessible label applied to the modal box body. This should be used to communicate
17 * important information about the modal box body div element if needed, such as that it
18 * is scrollable.
19 */
20 bodyAriaLabel?: string;
21 /** Accessible role applied to the modal box body. This will default to "region" if the
22 * bodyAriaLabel property is passed in. Set to a more appropriate role as applicable
23 * based on the modal content and context.
24 */
25 bodyAriaRole?: string;
26 /** Id of the modal box container. */
27 boxId: string;
28 /** Content rendered inside the modal. */
29 children: React.ReactNode;
30 /** Additional classes added to the modal box. */
31 className?: string;
32 /** Description of the modal. */
33 description?: React.ReactNode;
34 /** Id of the modal box description. */
35 descriptorId: string;
36 /** Flag to disable focus trap. */
37 disableFocusTrap?: boolean;
38 /** The element to focus when the modal opens. By default the first
39 * focusable element will receive focus.
40 */
41 elementToFocus?: HTMLElement | SVGElement | string;
42 /** Custom footer. */
43 footer?: React.ReactNode;
44 /** Flag indicating if modal content should be placed in a modal box body wrapper. */
45 hasNoBodyWrapper?: boolean;
46 /** Complex header (more than just text), supersedes the title property for header content. */
47 header?: React.ReactNode;
48 /** Optional help section for the modal header. */
49 help?: React.ReactNode;
50 /** Flag to show the modal. */
51 isOpen?: boolean;
52 /** Id of the modal box title. */
53 labelId: string;
54 /** A callback for when the close button is clicked. */
55 onClose?: (event: KeyboardEvent | React.MouseEvent) => void;
56 /** Position of the modal. By default a modal will be positioned vertically and horizontally centered. */
57 position?: 'default' | 'top';
58 /** Offset from alternate position. Can be any valid CSS length/percentage. */
59 positionOffset?: string;
60 /** Flag to show the close button in the header area of the modal. */
61 showClose?: boolean;
62 /** Text content of the modal header. */
63 title?: React.ReactNode;
64 /** Optional alert icon (or other) to show before the title of the modal header. When the
65 * predefined alert types are used the default styling will be automatically applied.
66 */
67 titleIconVariant?: 'success' | 'danger' | 'warning' | 'info' | 'custom' | React.ComponentType<any>;
68 /** Optional title label text for screen readers. */
69 titleLabel?: string;
70 /** Variant of the modal. */
71 variant?: 'small' | 'medium' | 'large' | 'default';
72 /** Default width of the modal. */
73 width?: number | string;
74 /** Maximum width of the modal. */
75 maxWidth?: number | string;
76 /** Value to overwrite the randomly generated data-ouia-component-id.*/
77 ouiaId?: number | string;
78 /** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
79 ouiaSafe?: boolean;
80 }
81 export declare const ModalContent: React.FunctionComponent<ModalContentProps>;
82 //# sourceMappingURL=ModalContent.d.ts.map