@@ -12,15 +12,18 @@ import {
1212 CAccordionHeader ,
1313 CAccordionItem ,
1414} from '@coreui/react'
15- import { Example } from 'src/reusable'
15+ import { DocsCallout , Example } from 'src/reusable'
1616
1717const Accordion = ( ) => {
1818 const [ activeKey , setActiveKey ] = useState ( 0 )
1919 const [ activeKey2 , setActiveKey2 ] = useState ( 0 )
2020
2121 return (
2222 < CRow >
23- < CCol >
23+ < CCol xs = { 12 } >
24+ < DocsCallout name = "Accordion" href = "components/accordion" />
25+ </ CCol >
26+ < CCol xs = { 12 } >
2427 < CCard className = "mb-4" >
2528 < CCardHeader >
2629 < strong > React Accordion</ strong >
@@ -29,7 +32,7 @@ const Accordion = () => {
2932 < p className = "text-medium-emphasis small" >
3033 Click the accordions below to expand/collapse the accordion content.
3134 </ p >
32- < Example href = "https://coreui.io/react/docs/4.0/ components/accordion" >
35+ < Example href = "components/accordion" >
3336 < CAccordion >
3437 < CAccordionItem >
3538 < CAccordionHeader >
@@ -42,13 +45,13 @@ const Accordion = () => {
4245 </ CAccordionHeader >
4346 < CAccordionCollapse visible = { activeKey === 1 } >
4447 < CAccordionBody >
45- < strong > This is the first item' s accordion body.</ strong > It is hidden by
48+ < strong > This is the first item' s accordion body.</ strong > It is hidden by
4649 default, until the collapse plugin adds the appropriate classes that we use to
4750 style each element. These classes control the overall appearance, as well as
4851 the showing and hiding via CSS transitions. You can modify any of this with
49- custom CSS or overriding our default variables. It' s also worth noting that
50- just about any HTML can go within the < code > .accordion-body</ code > , though the
51- transition does limit overflow.
52+ custom CSS or overriding our default variables. It' s also worth noting
53+ that just about any HTML can go within the < code > .accordion-body</ code > ,
54+ though the transition does limit overflow.
5255 </ CAccordionBody >
5356 </ CAccordionCollapse >
5457 </ CAccordionItem >
@@ -63,13 +66,13 @@ const Accordion = () => {
6366 </ CAccordionHeader >
6467 < CAccordionCollapse visible = { activeKey === 2 } >
6568 < CAccordionBody >
66- < strong > This is the second item' s accordion body.</ strong > It is hidden by
69+ < strong > This is the second item' s accordion body.</ strong > It is hidden by
6770 default, until the collapse plugin adds the appropriate classes that we use to
6871 style each element. These classes control the overall appearance, as well as
6972 the showing and hiding via CSS transitions. You can modify any of this with
70- custom CSS or overriding our default variables. It' s also worth noting that
71- just about any HTML can go within the < code > .accordion-body</ code > , though the
72- transition does limit overflow.
73+ custom CSS or overriding our default variables. It' s also worth noting
74+ that just about any HTML can go within the < code > .accordion-body</ code > ,
75+ though the transition does limit overflow.
7376 </ CAccordionBody >
7477 </ CAccordionCollapse >
7578 </ CAccordionItem >
@@ -84,13 +87,13 @@ const Accordion = () => {
8487 </ CAccordionHeader >
8588 < CAccordionCollapse visible = { activeKey === 3 } >
8689 < CAccordionBody >
87- < strong > This is the third item' s accordion body.</ strong > It is hidden by
90+ < strong > This is the third item' s accordion body.</ strong > It is hidden by
8891 default, until the collapse plugin adds the appropriate classes that we use to
8992 style each element. These classes control the overall appearance, as well as
9093 the showing and hiding via CSS transitions. You can modify any of this with
91- custom CSS or overriding our default variables. It' s also worth noting that
92- just about any HTML can go within the < code > .accordion-body</ code > , though the
93- transition does limit overflow.
94+ custom CSS or overriding our default variables. It' s also worth noting
95+ that just about any HTML can go within the < code > .accordion-body</ code > ,
96+ though the transition does limit overflow.
9497 </ CAccordionBody >
9598 </ CAccordionCollapse >
9699 </ CAccordionItem >
@@ -108,7 +111,7 @@ const Accordion = () => {
108111 borders, and some rounded corners to render accordions edge-to-edge with their parent
109112 container.
110113 </ p >
111- < Example href = "https://coreui.io/react/docs/4.0/ components/accordion" >
114+ < Example href = "components/accordion#flush " >
112115 < CAccordion flush >
113116 < CAccordionItem >
114117 < CAccordionHeader >
@@ -121,13 +124,13 @@ const Accordion = () => {
121124 </ CAccordionHeader >
122125 < CAccordionCollapse visible = { activeKey2 === 1 } >
123126 < CAccordionBody >
124- < strong > This is the first item' s accordion body.</ strong > It is hidden by
127+ < strong > This is the first item' s accordion body.</ strong > It is hidden by
125128 default, until the collapse plugin adds the appropriate classes that we use to
126129 style each element. These classes control the overall appearance, as well as
127130 the showing and hiding via CSS transitions. You can modify any of this with
128- custom CSS or overriding our default variables. It' s also worth noting that
129- just about any HTML can go within the < code > .accordion-body</ code > , though the
130- transition does limit overflow.
131+ custom CSS or overriding our default variables. It' s also worth noting
132+ that just about any HTML can go within the < code > .accordion-body</ code > ,
133+ though the transition does limit overflow.
131134 </ CAccordionBody >
132135 </ CAccordionCollapse >
133136 </ CAccordionItem >
@@ -142,13 +145,13 @@ const Accordion = () => {
142145 </ CAccordionHeader >
143146 < CAccordionCollapse visible = { activeKey2 === 2 } >
144147 < CAccordionBody >
145- < strong > This is the second item' s accordion body.</ strong > It is hidden by
148+ < strong > This is the second item' s accordion body.</ strong > It is hidden by
146149 default, until the collapse plugin adds the appropriate classes that we use to
147150 style each element. These classes control the overall appearance, as well as
148151 the showing and hiding via CSS transitions. You can modify any of this with
149- custom CSS or overriding our default variables. It' s also worth noting that
150- just about any HTML can go within the < code > .accordion-body</ code > , though the
151- transition does limit overflow.
152+ custom CSS or overriding our default variables. It' s also worth noting
153+ that just about any HTML can go within the < code > .accordion-body</ code > ,
154+ though the transition does limit overflow.
152155 </ CAccordionBody >
153156 </ CAccordionCollapse >
154157 </ CAccordionItem >
@@ -163,13 +166,13 @@ const Accordion = () => {
163166 </ CAccordionHeader >
164167 < CAccordionCollapse visible = { activeKey2 === 3 } >
165168 < CAccordionBody >
166- < strong > This is the third item' s accordion body.</ strong > It is hidden by
169+ < strong > This is the third item' s accordion body.</ strong > It is hidden by
167170 default, until the collapse plugin adds the appropriate classes that we use to
168171 style each element. These classes control the overall appearance, as well as
169172 the showing and hiding via CSS transitions. You can modify any of this with
170- custom CSS or overriding our default variables. It' s also worth noting that
171- just about any HTML can go within the < code > .accordion-body</ code > , though the
172- transition does limit overflow.
173+ custom CSS or overriding our default variables. It' s also worth noting
174+ that just about any HTML can go within the < code > .accordion-body</ code > ,
175+ though the transition does limit overflow.
173176 </ CAccordionBody >
174177 </ CAccordionCollapse >
175178 </ CAccordionItem >
0 commit comments