|
1 | 1 | {
|
2 | 2 | "name": "AlertDialogPortal",
|
3 |
| - "description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.", |
| 3 | + "description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.", |
4 | 4 | "props": {
|
5 | 5 | "container": {
|
6 | 6 | "type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
|
7 | 7 | "description": "A parent element to render the portal element into.",
|
8 | 8 | "detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
|
9 | 9 | },
|
10 |
| - "children": { |
11 |
| - "type": "ReactNode", |
12 |
| - "detailedType": "React.ReactNode" |
13 |
| - }, |
14 | 10 | "className": {
|
15 |
| - "type": "string | ((state: {}) => string)", |
| 11 | + "type": "string | ((state: FloatingPortal.State) => string)", |
16 | 12 | "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
|
17 | 13 | },
|
18 | 14 | "keepMounted": {
|
|
22 | 18 | "detailedType": "boolean | undefined"
|
23 | 19 | },
|
24 | 20 | "render": {
|
25 |
| - "type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)", |
| 21 | + "type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)", |
26 | 22 | "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
27 |
| - "detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)" |
| 23 | + "detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)" |
28 | 24 | }
|
29 | 25 | },
|
30 | 26 | "dataAttributes": {},
|
|
0 commit comments