@@ -15,71 +15,44 @@ import CAccordion from '@coreui/react/src/components/accordion/CAccordion'
|
15 | 15 | </tr>
|
16 | 16 | </thead>
|
17 | 17 | <tbody>
|
18 |
| -<tr id="caccordion-activeItemKey"> |
19 |
| -<td className="text-primary fw-semibold">activeItemKey<a href="#caccordion-activeItemKey" aria-label="CAccordion activeItemKey permalink" className="anchor-link after">#</a></td> |
| 18 | +<tr id="caccordion-active-item-key"> |
| 19 | +<td className="text-primary fw-semibold">activeItemKey<a href="#caccordion-active-item-key" aria-label="CAccordion activeItemKey permalink" className="anchor-link after">#</a></td> |
20 | 20 | <td>undefined</td>
|
21 | 21 | <td><code>{`string`}</code>, <code>{`number`}</code></td>
|
22 | 22 | </tr>
|
23 | 23 | <tr>
|
24 | 24 | <td colSpan="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> |
27 |
| -<JSXDocs code={`<CAccordion activeItemKey="1">...</CAccordion>`} /> |
| 25 | +<p>The active item key.</p> |
28 | 26 | </td>
|
29 | 27 | </tr>
|
30 |
| -<tr id="caccordion-alwaysOpen"> |
31 |
| -<td className="text-primary fw-semibold">alwaysOpen<a href="#caccordion-alwaysOpen" aria-label="CAccordion alwaysOpen permalink" className="anchor-link after">#</a></td> |
| 28 | +<tr id="caccordion-always-open"> |
| 29 | +<td className="text-primary fw-semibold">alwaysOpen<a href="#caccordion-always-open" aria-label="CAccordion alwaysOpen permalink" className="anchor-link after">#</a></td> |
32 | 30 | <td><code>{`false`}</code></td>
|
33 | 31 | <td><code>{`boolean`}</code></td>
|
34 | 32 | </tr>
|
35 | 33 | <tr>
|
36 | 34 | <td colSpan="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> |
39 |
| -<JSXDocs code={`<CAccordion alwaysOpen>...</CAccordion>`} /> |
| 35 | +<p>Make accordion items stay open when another item is opened</p> |
40 | 36 | </td>
|
41 | 37 | </tr>
|
42 |
| -<tr id="caccordion-className"> |
43 |
| -<td className="text-primary fw-semibold">className<a href="#caccordion-className" aria-label="CAccordion className permalink" className="anchor-link after">#</a></td> |
| 38 | +<tr id="caccordion-class-name"> |
| 39 | +<td className="text-primary fw-semibold">className<a href="#caccordion-class-name" aria-label="CAccordion className permalink" className="anchor-link after">#</a></td> |
44 | 40 | <td>undefined</td>
|
45 | 41 | <td><code>{`string`}</code></td>
|
46 | 42 | </tr>
|
47 | 43 | <tr>
|
48 | 44 | <td colSpan="3">
|
49 |
| -<p>Allows you to apply custom CSS classes to the React Accordion for enhanced styling and theming.</p> |
50 |
| -<JSXDocs code={`<CAccordion className="my-custom-accordion">...</CAccordion>`} /> |
51 |
| -</td> |
52 |
| -</tr> |
53 |
| -<tr id="caccordion-customClassNames"> |
54 |
| -<td className="text-primary fw-semibold">customClassNames<a href="#caccordion-customClassNames" aria-label="CAccordion customClassNames permalink" className="anchor-link after">#</a></td> |
55 |
| -<td>undefined</td> |
56 |
| -<td><code>{`Partial\<{ ACCORDION: string; ACCORDION_FLUSH: string; }>`}</code></td> |
57 |
| -</tr> |
58 |
| -<tr> |
59 |
| -<td colSpan="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> |
66 |
| -<JSXDocs code={`const customClasses = { |
67 |
| -ACCORDION: 'custom-accordion', |
68 |
| -ACCORDION_FLUSH: 'custom-accordion-flush' |
69 |
| -} |
70 |
| -<CAccordion customClassNames={customClasses}>...</CAccordion>`} /> |
| 45 | +<p>A string of all className you want applied to the base component.</p> |
71 | 46 | </td>
|
72 | 47 | </tr>
|
73 | 48 | <tr id="caccordion-flush">
|
74 | 49 | <td className="text-primary fw-semibold">flush<a href="#caccordion-flush" aria-label="CAccordion flush permalink" className="anchor-link after">#</a></td>
|
75 |
| -<td><code>{`false`}</code></td> |
| 50 | +<td>undefined</td> |
76 | 51 | <td><code>{`boolean`}</code></td>
|
77 | 52 | </tr>
|
78 | 53 | <tr>
|
79 | 54 | <td colSpan="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> |
82 |
| -<JSXDocs code={`<CAccordion flush>...</CAccordion>`} /> |
| 55 | +<p>Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container.</p> |
83 | 56 | </td>
|
84 | 57 | </tr>
|
85 | 58 | </tbody>
|
|
0 commit comments