diff --git a/src/views/components/base/accordion/Accordion.js b/src/views/components/base/accordion/Accordion.js
index b5a8790..1542605 100644
--- a/src/views/components/base/accordion/Accordion.js
+++ b/src/views/components/base/accordion/Accordion.js
@@ -7,17 +7,12 @@ import {
CRow,
CAccordion,
CAccordionBody,
- CAccordionButton,
- CAccordionCollapse,
CAccordionHeader,
CAccordionItem,
} from '@coreui/react'
import { DocsCallout, DocsExample } from 'src/components'
const Accordion = () => {
- const [activeKey, setActiveKey] = useState(0)
- const [activeKey2, setActiveKey2] = useState(0)
-
return (
@@ -33,69 +28,42 @@ const Accordion = () => {
Click the accordions below to expand/collapse the accordion content.
-
-
-
- (activeKey === 1 ? setActiveKey(0) : setActiveKey(1))}
- >
- Accordion Item #1
-
-
-
-
- This is the first item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+
+ Accordion Item #1
+
+ This is the first item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
-
-
- (activeKey === 2 ? setActiveKey(0) : setActiveKey(2))}
- >
- Accordion Item #2
-
-
-
-
- This is the second item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+ Accordion Item #2
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
-
-
- (activeKey === 3 ? setActiveKey(0) : setActiveKey(3))}
- >
- Accordion Item #3
-
-
-
-
- This is the third item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+ Accordion Item #3
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
@@ -113,68 +81,92 @@ const Accordion = () => {
-
-
- (activeKey2 === 1 ? setActiveKey2(0) : setActiveKey2(1))}
- >
- Accordion Item #1
-
-
-
-
- This is the first item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+ Accordion Item #1
+
+ This is the first item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
-
-
- (activeKey2 === 2 ? setActiveKey2(0) : setActiveKey2(2))}
- >
- Accordion Item #2
-
-
-
-
- This is the second item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+ Accordion Item #2
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
-
-
- (activeKey2 === 3 ? setActiveKey2(0) : setActiveKey2(3))}
- >
- Accordion Item #3
-
-
-
-
- This is the third item's accordion body. It is hidden by
- default, until the collapse plugin adds the appropriate classes that we use to
- style each element. These classes control the overall appearance, as well as
- the showing and hiding via CSS transitions. You can modify any of this with
- custom CSS or overriding our default variables. It's also worth noting
- that just about any HTML can go within the .accordion-body
,
- though the transition does limit overflow.
-
-
+
+ Accordion Item #3
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
+
+
+
+
+
+
+
+ React Accordion Always open
+
+
+
+ Add alwaysOpen
property to make accordion items stay open when another
+ item is opened.
+
+
+
+
+ Accordion Item #1
+
+ This is the first item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
+
+
+ Accordion Item #2
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
+
+
+ Accordion Item #3
+
+ This is the second item's accordion body. It is hidden by
+ default, until the collapse plugin adds the appropriate classes that we use to
+ style each element. These classes control the overall appearance, as well as the
+ showing and hiding via CSS transitions. You can modify any of this with custom
+ CSS or overriding our default variables. It's also worth noting that just
+ about any HTML can go within the .accordion-body
, though the
+ transition does limit overflow.
+
diff --git a/src/views/components/notifications/modals/Modals.js b/src/views/components/notifications/modals/Modals.js
index e7b3a93..918e80e 100644
--- a/src/views/components/notifications/modals/Modals.js
+++ b/src/views/components/notifications/modals/Modals.js
@@ -23,7 +23,7 @@ const LiveDemo = () => {
<>
setVisible(!visible)}>Launch demo modal
setVisible(false)}>
- setVisible(false)}>
+
Modal title
Woohoo, you're reading this text in a modal!
@@ -43,8 +43,8 @@ const StaticBackdrop = () => {
return (
<>
setVisible(!visible)}>Launch static backdrop modal
-
- setVisible(false)}>
+ setVisible(false)}>
+
Modal title
@@ -67,7 +67,7 @@ const ScrollingLongContent = () => {
<>
setVisible(!visible)}>Launch demo modal
setVisible(false)}>
- setVisible(false)}>
+
Modal title
@@ -167,7 +167,7 @@ const ScrollingLongContent2 = () => {
<>
setVisible(!visible)}>Launch demo modal
setVisible(false)}>
- setVisible(false)}>
+
Modal title
@@ -266,8 +266,8 @@ const VerticallyCentered = () => {
return (
<>
setVisible(!visible)}>Vertically centered modal
-
- setVisible(false)}>
+ setVisible(false)}>
+
Modal title
@@ -290,8 +290,8 @@ const VerticallyCentered2 = () => {
return (
<>
setVisible(!visible)}>Vertically centered scrollable modal
-
- setVisible(false)}>
+ setVisible(false)}>
+
Modal title
@@ -333,8 +333,8 @@ const TooltipsPopovers = () => {
return (
<>
setVisible(!visible)}>Launch demo modal
-
- setVisible(false)}>
+ setVisible(false)}>
+
Modal title
@@ -379,20 +379,20 @@ const OptionalSizes = () => {
setVisibleXL(!visibleXL)}>Extra large modal
setVisibleLg(!visibleLg)}>Large modal
setVisibleSm(!visibleSm)}>Small large modal
-
- setVisibleXL(false)}>
+ setVisibleXL(false)}>
+
Extra large modal
...
-
- setVisibleLg(false)}>
+ setVisibleLg(false)}>
+
Large modal
...
-
- setVisibleSm(false)}>
+ setVisibleSm(false)}>
+
Small modal
...
@@ -417,38 +417,38 @@ const FullscreenModal = () => {
setVisibleLg(!visibleLg)}>Full screen below lg
setVisibleXL(!visibleXL)}>Full screen below xl
setVisibleXXL(!visibleXXL)}>Full screen below xxl
-
- setVisible(false)}>
+ setVisible(false)}>
+
Full screen
...
-
- setVisibleSm(false)}>
+ setVisibleSm(false)}>
+
Full screen below sm
...
-
- setVisibleMd(false)}>
+ setVisibleMd(false)}>
+
Full screen below md
...
-
- setVisibleLg(false)}>
+ setVisibleLg(false)}>
+
Full screen below lg
...
-
- setVisibleXL(false)}>
+ setVisibleXL(false)}>
+
Full screen below xl
...
-
- setVisibleXXL(false)}>
+ setVisibleXXL(false)}>
+
Full screen below xxl
...