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
<tdcolSpan="3">Determines which accordion item is currently active (expanded) by default.<br/>Accepts a number or string corresponding to the <code>{`itemKey`}</code> of the desired accordion item.<br /><JSXDocscode={`<CAccordion activeItemKey="1">...</CAccordion>`} /></td>
24
+
<tdcolSpan="3">
25
+
<p>Determines which accordion item is currently active (expanded) by default.<br />
26
+
Accepts a number or string corresponding to the <code>{`itemKey`}</code> of the desired accordion item.</p>
<tdcolSpan="3">When set to <code>{`true`}</code>, multiple accordion items within the React Accordion can be open simultaneously.<br/>This is ideal for scenarios where users need to view multiple sections at once without collapsing others.<br /><JSXDocscode={`<CAccordion alwaysOpen>...</CAccordion>`} /></td>
36
+
<tdcolSpan="3">
37
+
<p>When set to <code>{`true`}</code>, multiple accordion items within the React Accordion can be open simultaneously.<br />
38
+
This is ideal for scenarios where users need to view multiple sections at once without collapsing others.</p>
<tdcolSpan="3">Allows you to apply custom CSS classes to the React Accordion for enhanced styling and theming.<br /><JSXDocscode={`<CAccordion className="my-custom-accordion">...</CAccordion>`} /></td>
48
+
<tdcolSpan="3">
49
+
<p>Allows you to apply custom CSS classes to the React Accordion for enhanced styling and theming.</p>
<tdcolSpan="3">Allows overriding or extending the default CSS class names used in the component.<br/><br/>- <code>{`ACCORDION`}</code>: Base class for the accordion component.<br/>- <code>{`ACCORDION_FLUSH`}</code>: Class applied when the <code>{`flush`}</code> prop is set to true, ensuring an edge-to-edge layout.<br/><br/>Use this prop to customize the styles of specific parts of the accordion.<br /><JSXDocscode={`const customClasses = {
59
+
<tdcolSpan="3">
60
+
<p>Allows overriding or extending the default CSS class names used in the component.</p>
61
+
<ul>
62
+
<li><code>{`ACCORDION`}</code>: Base class for the accordion component.</li>
63
+
<li><code>{`ACCORDION_FLUSH`}</code>: Class applied when the <code>{`flush`}</code> prop is set to true, ensuring an edge-to-edge layout.</li>
64
+
</ul>
65
+
<p>Use this prop to customize the styles of specific parts of the accordion.</p>
<tdcolSpan="3">When <code>{`flush`}</code> is set to <code>{`true`}</code>, the React Accordion renders edge-to-edge with its parent container,<br/>creating a seamless and modern look ideal for minimalist designs.<br /><JSXDocscode={`<CAccordion flush>...</CAccordion>`} /></td>
79
+
<tdcolSpan="3">
80
+
<p>When <code>{`flush`}</code> is set to <code>{`true`}</code>, the React Accordion renders edge-to-edge with its parent container,<br />
81
+
creating a seamless and modern look ideal for minimalist designs.</p>
Copy file name to clipboardExpand all lines: packages/docs/content/api/CAccordionBody.api.mdx
+15-3
Original file line number
Diff line number
Diff line change
@@ -21,19 +21,31 @@ import CAccordionBody from '@coreui/react/src/components/accordion/CAccordionBod
21
21
<td><code>{`string`}</code></td>
22
22
</tr>
23
23
<tr>
24
-
<tdcolSpan="3">Allows you to apply custom CSS classes to the React Accordion Body for enhanced styling and theming.<br /><JSXDocscode={`<CAccordionBody className="custom-accordion-body">...</CAccordionBody>`} /></td>
24
+
<tdcolSpan="3">
25
+
<p>Allows you to apply custom CSS classes to the React Accordion Body for enhanced styling and theming.</p>
<tdcolSpan="3">Allows overriding or extending the default CSS class names used in the accordion body component.<br/>Accepts a partial object matching the shape of <code>{`ACCORDION_BODY_CLASS_NAMES`}</code>, which includes:<br/><br/>- <code>{`ACCORDION_COLLAPSE`}</code>: Base class for the collapse container in the accordion body.<br/>- <code>{`ACCORDION_BODY`}</code>: Base class for the main content container inside the accordion body.<br/><br/>Use this prop to customize the styles of specific parts of the accordion body.<br /><JSXDocscode={`const customClasses = {
35
+
<tdcolSpan="3">
36
+
<p>Allows overriding or extending the default CSS class names used in the accordion body component.<br />
37
+
Accepts a partial object matching the shape of <code>{`ACCORDION_BODY_CLASS_NAMES`}</code>, which includes:</p>
38
+
<ul>
39
+
<li><code>{`ACCORDION_COLLAPSE`}</code>: Base class for the collapse container in the accordion body.</li>
40
+
<li><code>{`ACCORDION_BODY`}</code>: Base class for the main content container inside the accordion body.</li>
41
+
</ul>
42
+
<p>Use this prop to customize the styles of specific parts of the accordion body.</p>
<tdcolSpan="3">Allows overriding or extending the default CSS class names used in the accordion button component.<br/>Accepts a partial object matching the shape of <code>{`CLASS_NAMES`}</code>, which includes:<br/><br/>- <code>{`ACCORDION_BUTTON`}</code>: Base class for the accordion button.<br/><br/>Use this prop to customize the styles of the accordion button.<br /><JSXDocscode={`const customClasses = {
34
+
<tdcolSpan="3">
35
+
<p>Allows overriding or extending the default CSS class names used in the accordion button component.<br />
36
+
Accepts a partial object matching the shape of <code>{`CLASS_NAMES`}</code>, which includes:</p>
37
+
<ul>
38
+
<li><code>{`ACCORDION_BUTTON`}</code>: Base class for the accordion button.</li>
39
+
</ul>
40
+
<p>Use this prop to customize the styles of the accordion button.</p>
<tdcolSpan="3">Allows overriding or extending the default CSS class names used in the accordion header component.<br/>Accepts a partial object matching the shape of <code>{`ACCORDION_HEADER_CLASS_NAMES`}</code>, which includes:<br/><br/>- <code>{`ACCORDION_HEADER`}</code>: Base class for the accordion header container.<br/>- <code>{`ACCORDION_BUTTON`}</code>: Class applied to the button within the accordion header.<br/><br/>Use this prop to customize the styles of specific parts of the accordion header.<br /><JSXDocscode={`const customClasses = {
34
+
<tdcolSpan="3">
35
+
<p>Allows overriding or extending the default CSS class names used in the accordion header component.<br />
36
+
Accepts a partial object matching the shape of <code>{`ACCORDION_HEADER_CLASS_NAMES`}</code>, which includes:</p>
37
+
<ul>
38
+
<li><code>{`ACCORDION_HEADER`}</code>: Base class for the accordion header container.</li>
39
+
<li><code>{`ACCORDION_BUTTON`}</code>: Class applied to the button within the accordion header.</li>
40
+
</ul>
41
+
<p>Use this prop to customize the styles of specific parts of the accordion header.</p>
<tdcolSpan="3">Allows overriding or extending the default CSS class names used in the accordion item component.<br/>Accepts a partial object matching the shape of <code>{`ACCORDION_ITEM_CLASS_NAMES`}</code>, which includes:<br/><br/>- <code>{`ACCORDION_ITEM`}</code>: Base class for an individual accordion item.<br/><br/>Use this prop to customize the styles of specific parts of the accordion item.<br /><JSXDocscode={`const customClasses = {
34
+
<tdcolSpan="3">
35
+
<p>Allows overriding or extending the default CSS class names used in the accordion item component.<br />
36
+
Accepts a partial object matching the shape of <code>{`ACCORDION_ITEM_CLASS_NAMES`}</code>, which includes:</p>
37
+
<ul>
38
+
<li><code>{`ACCORDION_ITEM`}</code>: Base class for an individual accordion item.</li>
39
+
</ul>
40
+
<p>Use this prop to customize the styles of specific parts of the accordion item.</p>
0 commit comments