You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/content/api/CModal.api.mdx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ import CModal from '@coreui/react/src/components/modal/CModal'
10
10
|**alignment**| Align the modal in the center or top of the screen. |`'top'`\|`'center'`| - |
11
11
|**backdrop**| Apply a backdrop on body while modal is open. |`boolean`\|`'static'`| true |
12
12
|**className**| A string of all className you want applied to the base component. |`string`| - |
13
-
|**focus****_v4.10.0+_**| Puts the focus on the modal when shown. |`boolean`| true |
13
+
|**container****_5.3.0+_**| Appends the react modal to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`. |`Element`\|`DocumentFragment`\|`(() => Element`\|`DocumentFragment)`| - |
14
+
|**focus****_4.10.0+_**| Puts the focus on the modal when shown. |`boolean`| true |
14
15
|**fullscreen**| Set modal to covers the entire user viewport. |`boolean`\|`'sm'`\|`'md'`\|`'lg'`\|`'xl'`\|`'xxl'`| - |
15
16
|**keyboard**| Closes the modal when escape key is pressed. |`boolean`| true |
16
17
|**onClose**| Callback fired when the component requests to be closed. |`() => void`| - |
0 commit comments