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
* Component used for the root node. Either a string to use a HTML element or a component.
43
43
*/
44
44
component?: string|ElementType
45
+
/**
46
+
* Appends the react dropdown menu to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
47
+
*
48
+
* @since v4.11.0
49
+
*/
50
+
container?: Element|(()=>Element|null)|null
45
51
/**
46
52
* Sets a darker color scheme to match a dark navbar.
Copy file name to clipboardExpand all lines: packages/docs/content/api/CConditionalPortal.api.mdx
+2-1
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,5 @@ import CConditionalPortal from '@coreui/react/src/components/conditional-portal/
7
7
8
8
| Property | Description | Type | Default |
9
9
| --- | --- | --- | --- |
10
-
|**portal**| Render some children into a different part of the DOM |`boolean`| - |
10
+
|**container****_v4.11.0+_**| An HTML element or function that returns a single element, with `document.body` as the default. |`Element`\|`(() => Element)`| - |
11
+
|**portal**| Render some children into a different part of the DOM |`any`| - |
Copy file name to clipboardExpand all lines: packages/docs/content/api/CDropdown.api.mdx
+1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ import CDropdown from '@coreui/react/src/components/dropdown/CDropdown'
11
11
|**autoClose**| Configure the auto close behavior of the dropdown:<br/>- `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.<br/>- `false` - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)<br/>- `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.<br/>- `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu. |`boolean`\|`'inside'`\|`'outside'`| true |
12
12
|**className**| A string of all className you want applied to the base component. |`string`| - |
13
13
|**component**| Component used for the root node. Either a string to use a HTML element or a component. |`string`\|`ComponentClass<any, any>`\|`FunctionComponent<any>`| div |
14
+
|**container****_v4.11.0+_**| Appends the react dropdown menu to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`. |`Element`\|`(() => Element)`| - |
14
15
|**dark**| Sets a darker color scheme to match a dark navbar. |`boolean`| - |
15
16
|**direction**| Sets a specified direction and location of the dropdown menu. |`'center'`\|`'dropup'`\|`'dropup-center'`\|`'dropend'`\|`'dropstart'`| - |
16
17
|**offset**| Offset of the dropdown menu relative to its target. |`[number, number]`|[0, 2]|
Copy file name to clipboardExpand all lines: packages/docs/content/api/CPopover.api.mdx
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import CPopover from '@coreui/react/src/components/popover/CPopover'
9
9
| --- | --- | --- | --- |
10
10
|**animation****_4.9.0+_**| Apply a CSS fade transition to the popover. |`boolean`| true |
11
11
|**className**| A string of all className you want applied to the component. |`string`| - |
12
+
|**container****_v4.11.0+_**| Appends the react popover to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`. |`Element`\|`(() => Element)`| - |
12
13
|**content**| Content node for your component. |`ReactNode`| - |
13
14
|**delay****_4.9.0+_**| The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`. |`number`\|`{ show: number; hide: number; }`| 0 |
14
15
|**fallbackPlacements****_4.9.0+_**| Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference. |`Placements`\|`Placements[]`|['top', 'right', 'bottom', 'left']|
Copy file name to clipboardExpand all lines: packages/docs/content/api/CTooltip.api.mdx
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import CTooltip from '@coreui/react/src/components/tooltip/CTooltip'
9
9
| --- | --- | --- | --- |
10
10
|**animation****_4.9.0+_**| Apply a CSS fade transition to the tooltip. |`boolean`| true |
11
11
|**className**| A string of all className you want applied to the component. |`string`| - |
12
+
|**container****_v4.11.0+_**| Appends the react tooltip to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`. |`Element`\|`(() => Element)`| - |
12
13
|**content**| Content node for your component. |`ReactNode`| - |
13
14
|**delay****_4.9.0+_**| The delay for displaying and hiding the tooltip (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`. |`number`\|`{ show: number; hide: number; }`| 0 |
14
15
|**fallbackPlacements****_4.9.0+_**| Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference. |`Placements`\|`Placements[]`|['top', 'right', 'bottom', 'left']|
0 commit comments