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
+
* Determines the root node component (native HTML element or a custom React component) for the React Dropdown.
32
44
*/
33
45
as?: ElementType
46
+
34
47
/**
35
-
* Configure the auto close behavior of the dropdown:
36
-
* - `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.
37
-
* - `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)
38
-
* - `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.
39
-
* - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu.
48
+
* Configures automatic closing behavior for the React Dropdown:
49
+
* - `true` - Close on clicks inside or outside of the React Dropdown Menu.
50
+
* - `false` - Disable auto-close; manually call `hide` or `toggle` (also not closed by `Escape`).
51
+
* - `'inside'` - Close only when clicking inside the React Dropdown Menu.
52
+
* - `'outside'` - Close only when clicking outside the React Dropdown Menu.
53
+
*
54
+
* @example
55
+
* // Close only when user clicks outside of the menu
56
+
* <CDropdown autoClose="outside" />
40
57
*/
41
58
autoClose?: 'inside'|'outside'|boolean
59
+
42
60
/**
43
-
* A string of all className you want applied to the base component.
61
+
* Adds custom classes to the React Dropdown root element.
44
62
*/
45
63
className?: string
64
+
46
65
/**
47
-
* 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`.
66
+
* Appends the React Dropdown Menu to a specific element. You can pass an HTML element or a function returning an element. Defaults to `document.body`.
* Offset of the dropdown menu relative to its target.
89
+
* Defines x and y offsets ([x, y]) for the React Dropdown Menu relative to its target.
90
+
*
91
+
* @example
92
+
* // Offset the menu 10px in X and 5px in Y direction
93
+
* <CDropdown offset={[10, 5]}>
94
+
* ...
95
+
* </CDropdown>
62
96
*/
63
97
offset?: [number,number]
98
+
64
99
/**
65
-
* Callback fired when the component requests to be hidden.
100
+
* Callback fired right before the React Dropdown becomes hidden.
66
101
*
67
102
* @since 4.9.0
68
103
*/
69
104
onHide?: ()=>void
105
+
70
106
/**
71
-
* Callback fired when the component requests to be shown.
107
+
* Callback fired immediately after the React Dropdown is displayed.
72
108
*/
73
109
onShow?: ()=>void
110
+
74
111
/**
75
-
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
112
+
* Determines the placement of the React Dropdown Menu after Popper.js modifiers.
* If you want to disable dynamic positioning set this property to `true`.
119
+
* Enables or disables dynamic positioning via Popper.js for the React Dropdown Menu.
82
120
*/
83
121
popper?: boolean
122
+
123
+
/**
124
+
* Provides a custom Popper.js configuration or a function that returns a modified Popper.js configuration for advanced positioning of the React Dropdown Menu. [Read more](https://popper.js.org/docs/v2/constructors/#options)
0 commit comments