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/4.1/api/CDropdownToggle.api.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,5 +19,5 @@ import CDropdownToggle from '@coreui/react/src/components/dropdown/CDropdownTogg
19
19
|**shape**| Select the shape of the component. |`'rounded'`\|`'rounded-top'`\|`'rounded-end'`\|`'rounded-bottom'`\|`'rounded-start'`\|`'rounded-circle'`\|`'rounded-pill'`\|`'rounded-0'`\|`'rounded-1'`\|`'rounded-2'`\|`'rounded-3'`\|`string`| - |
20
20
|**size**| Size the component small or large. |`'sm'`\|`'lg'`| - |
21
21
|**split**| Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` className for proper spacing around the dropdown caret. |`boolean`| - |
22
-
|**trigger**| Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. |`'hover'`\|`'focus'`\|`'click'`\|`'click-init'`| click |
22
+
|**trigger**| Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. |`'hover'`\|`'focus'`\|`'click'`| click |
23
23
|**variant**| Set the button variant to an outlined button or a ghost button. |`'outline'`\|`'ghost'`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
15
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
12
16
|**hitArea**| Sets hit area to the full area of the component. |`'full'`| - |
13
17
|**id**| The id global attribute defines an identifier (ID) that must be unique in the whole document. |`string`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
13
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
14
+
|**invalid**| Set component validation state to invalid. |`boolean`| - |
15
+
|**tooltipFeedback** <br/><divclass="badge bg-primary">4.2.0+</div> | Display validation feedback in a styled tooltip. |`boolean`| - |
16
+
|**valid**| Set component validation state to valid. |`boolean`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
13
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
14
+
|**invalid**| Set component validation state to invalid. |`boolean`| - |
15
+
|**label** <br/><divclass="badge bg-primary">4.2.0+</div> | Add a caption for a component. |`ReactNode`| - |
16
+
|**text** <br/><divclass="badge bg-primary">4.2.0+</div> | Add helper text to the component. |`ReactNode`| - |
17
+
|**tooltipFeedback** <br/><divclass="badge bg-primary">4.2.0+</div> | Display validation feedback in a styled tooltip. |`boolean`| - |
18
+
|**valid**| Set component validation state to valid. |`boolean`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
15
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
12
16
|**invalid**| Set component validation state to invalid. |`boolean`| - |
17
+
|**label** <br/><divclass="badge bg-primary">4.2.0+</div> | Add a caption for a component. |`ReactNode`| - |
13
18
|**onChange**| Method called immediately after the `value` prop changes. |`ChangeEventHandler<HTMLInputElement>`| - |
14
19
|**plainText**| Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`|`boolean`| - |
15
20
|**readOnly**| Toggle the readonly state for the component. |`boolean`| - |
16
21
|**size**| Size the component small or large. |`'sm'`\|`'lg'`| - |
22
+
|**text** <br/><divclass="badge bg-primary">4.2.0+</div> | Add helper text to the component. |`ReactNode`| - |
23
+
|**tooltipFeedback** <br/><divclass="badge bg-primary">4.2.0+</div> | Display validation feedback in a styled tooltip. |`boolean`| - |
17
24
|**type**| Specifies the type of component. |`string`| text |
18
25
|**valid**| Set component validation state to valid. |`boolean`| - |
19
-
|**value**| The `value` attribute of component.<br/>@controllable onChange|`string`\|`number`\|`string[]`| - |
26
+
|**value**| The `value` attribute of component. |`string`\|`number`\|`string[]`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
14
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
11
15
|**htmlSize**| Specifies the number of visible options in a drop-down list. |`number`| - |
12
16
|**invalid**| Set component validation state to invalid. |`boolean`| - |
17
+
|**label** <br/><divclass="badge bg-primary">4.2.0+</div> | Add a caption for a component. |`ReactNode`| - |
13
18
|**onChange**| Method called immediately after the `value` prop changes. |`ChangeEventHandler<HTMLSelectElement>`| - |
14
19
|**options**| Options list of the select component. Available keys: `label`, `value`, `disabled`.<br/>Examples:<br/>- `options={[{ value: 'js', label: 'JavaScript' }, { value: 'html', label: 'HTML', disabled: true }]}`<br/>- `options={['js', 'html']}`|`Option[]`\|`string[]`| - |
15
20
|**size**| Size the component small or large. |`'sm'`\|`'lg'`| - |
21
+
|**text** <br/><divclass="badge bg-primary">4.2.0+</div> | Add helper text to the component. |`ReactNode`| - |
22
+
|**tooltipFeedback** <br/><divclass="badge bg-primary">4.2.0+</div> | Display validation feedback in a styled tooltip. |`boolean`| - |
16
23
|**valid**| Set component validation state to valid. |`boolean`| - |
17
-
|**value**| The `value` attribute of component.<br/>@controllable onChange|`string`\|`number`\|`string[]`| - |
24
+
|**value**| The `value` attribute of component. |`string`\|`number`\|`string[]`| - |
|**feedbackValid** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
15
+
|**floatingLabel** <br/><divclass="badge bg-primary">4.2.0+</div> | Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`. |`ReactNode`| - |
12
16
|**invalid**| Set component validation state to invalid. |`boolean`| - |
17
+
|**label** <br/><divclass="badge bg-primary">4.2.0+</div> | Add a caption for a component. |`ReactNode`| - |
13
18
|**onChange**| Method called immediately after the `value` prop changes. |`ChangeEventHandler<HTMLTextAreaElement>`| - |
14
19
|**plainText**| Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`. |`boolean`| - |
15
20
|**readOnly**| Toggle the readonly state for the component. |`boolean`| - |
21
+
|**text** <br/><divclass="badge bg-primary">4.2.0+</div> | Add helper text to the component. |`ReactNode`| - |
22
+
|**tooltipFeedback** <br/><divclass="badge bg-primary">4.2.0+</div> | Display validation feedback in a styled tooltip. |`boolean`| - |
16
23
|**valid**| Set component validation state to valid. |`boolean`| - |
17
-
|**value**| The `value` attribute of component.<br/>@controllable onChange|`string`\|`number`\|`string[]`| - |
24
+
|**value**| The `value` attribute of component. |`string`\|`number`\|`string[]`| - |
Copy file name to clipboardExpand all lines: packages/docs/content/4.1/api/CModal.api.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,5 @@ import CModal from '@coreui/react/src/components/modal/CModal'
19
19
|**scrollable**| Create a scrollable modal that allows scrolling the modal body. |`boolean`| - |
20
20
|**size**| Size the component small, large, or extra large. |`'sm'`\|`'lg'`\|`'xl'`| - |
21
21
|**transition**| Remove animation to create modal that simply appear rather than fade in to view. |`boolean`| true |
22
+
|**unmountOnClose**| By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false. |`boolean`| true |
22
23
|**visible**| Toggle the visibility of modal component. |`boolean`| - |
0 commit comments