refactor: update examples to latest version of @coreui/react
This commit is contained in:
parent
3c2bb541be
commit
c84e419c3a
@ -7,17 +7,12 @@ import {
|
|||||||
CRow,
|
CRow,
|
||||||
CAccordion,
|
CAccordion,
|
||||||
CAccordionBody,
|
CAccordionBody,
|
||||||
CAccordionButton,
|
|
||||||
CAccordionCollapse,
|
|
||||||
CAccordionHeader,
|
CAccordionHeader,
|
||||||
CAccordionItem,
|
CAccordionItem,
|
||||||
} from '@coreui/react'
|
} from '@coreui/react'
|
||||||
import { DocsCallout, DocsExample } from 'src/components'
|
import { DocsCallout, DocsExample } from 'src/components'
|
||||||
|
|
||||||
const Accordion = () => {
|
const Accordion = () => {
|
||||||
const [activeKey, setActiveKey] = useState(0)
|
|
||||||
const [activeKey2, setActiveKey2] = useState(0)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CRow>
|
<CRow>
|
||||||
<CCol xs={12}>
|
<CCol xs={12}>
|
||||||
@ -33,69 +28,42 @@ const Accordion = () => {
|
|||||||
Click the accordions below to expand/collapse the accordion content.
|
Click the accordions below to expand/collapse the accordion content.
|
||||||
</p>
|
</p>
|
||||||
<DocsExample href="components/accordion">
|
<DocsExample href="components/accordion">
|
||||||
<CAccordion>
|
<CAccordion activeItemKey={2}>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={1}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #1</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey !== 1}
|
<strong>This is the first item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey === 1 ? setActiveKey(0) : setActiveKey(1))}
|
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
|
||||||
Accordion Item #1
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey === 1}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the first item's accordion body.</strong> 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 <code>.accordion-body</code>,
|
|
||||||
though the transition does limit overflow.
|
|
||||||
</CAccordionBody>
|
|
||||||
</CAccordionCollapse>
|
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={2}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #2</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey !== 2}
|
<strong>This is the second item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey === 2 ? setActiveKey(0) : setActiveKey(2))}
|
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
|
||||||
Accordion Item #2
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey === 2}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the second item's accordion body.</strong> 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 <code>.accordion-body</code>,
|
|
||||||
though the transition does limit overflow.
|
|
||||||
</CAccordionBody>
|
|
||||||
</CAccordionCollapse>
|
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={3}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #3</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey !== 3}
|
<strong>This is the second item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey === 3 ? setActiveKey(0) : setActiveKey(3))}
|
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
|
||||||
Accordion Item #3
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey === 3}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the third item's accordion body.</strong> 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 <code>.accordion-body</code>,
|
|
||||||
though the transition does limit overflow.
|
|
||||||
</CAccordionBody>
|
|
||||||
</CAccordionCollapse>
|
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
</CAccordion>
|
</CAccordion>
|
||||||
</DocsExample>
|
</DocsExample>
|
||||||
@ -113,68 +81,92 @@ const Accordion = () => {
|
|||||||
</p>
|
</p>
|
||||||
<DocsExample href="components/accordion#flush">
|
<DocsExample href="components/accordion#flush">
|
||||||
<CAccordion flush>
|
<CAccordion flush>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={1}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #1</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey2 !== 1}
|
<strong>This is the first item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey2 === 1 ? setActiveKey2(0) : setActiveKey2(1))}
|
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
|
||||||
Accordion Item #1
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey2 === 1}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the first item's accordion body.</strong> 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 <code>.accordion-body</code>,
|
|
||||||
though the transition does limit overflow.
|
|
||||||
</CAccordionBody>
|
|
||||||
</CAccordionCollapse>
|
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={2}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #2</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey2 !== 2}
|
<strong>This is the second item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey2 === 2 ? setActiveKey2(0) : setActiveKey2(2))}
|
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
|
||||||
Accordion Item #2
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey2 === 2}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the second item's accordion body.</strong> 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 <code>.accordion-body</code>,
|
|
||||||
though the transition does limit overflow.
|
|
||||||
</CAccordionBody>
|
|
||||||
</CAccordionCollapse>
|
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
<CAccordionItem>
|
<CAccordionItem itemKey={3}>
|
||||||
<CAccordionHeader>
|
<CAccordionHeader>Accordion Item #3</CAccordionHeader>
|
||||||
<CAccordionButton
|
<CAccordionBody>
|
||||||
collapsed={activeKey2 !== 3}
|
<strong>This is the second item's accordion body.</strong> It is hidden by
|
||||||
onClick={() => (activeKey2 === 3 ? setActiveKey2(0) : setActiveKey2(3))}
|
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
|
||||||
Accordion Item #3
|
showing and hiding via CSS transitions. You can modify any of this with custom
|
||||||
</CAccordionButton>
|
CSS or overriding our default variables. It's also worth noting that just
|
||||||
</CAccordionHeader>
|
about any HTML can go within the <code>.accordion-body</code>, though the
|
||||||
<CAccordionCollapse visible={activeKey2 === 3}>
|
transition does limit overflow.
|
||||||
<CAccordionBody>
|
</CAccordionBody>
|
||||||
<strong>This is the third item's accordion body.</strong> It is hidden by
|
</CAccordionItem>
|
||||||
default, until the collapse plugin adds the appropriate classes that we use to
|
</CAccordion>
|
||||||
style each element. These classes control the overall appearance, as well as
|
</DocsExample>
|
||||||
the showing and hiding via CSS transitions. You can modify any of this with
|
</CCardBody>
|
||||||
custom CSS or overriding our default variables. It's also worth noting
|
</CCard>
|
||||||
that just about any HTML can go within the <code>.accordion-body</code>,
|
<CCard className="mb-4">
|
||||||
though the transition does limit overflow.
|
<CCardHeader>
|
||||||
</CAccordionBody>
|
<strong>React Accordion</strong> <small>Always open</small>
|
||||||
</CAccordionCollapse>
|
</CCardHeader>
|
||||||
|
<CCardBody>
|
||||||
|
<p className="text-medium-emphasis small">
|
||||||
|
Add <code>alwaysOpen</code> property to make accordion items stay open when another
|
||||||
|
item is opened.
|
||||||
|
</p>
|
||||||
|
<DocsExample href="components/accordion#flush">
|
||||||
|
<CAccordion alwaysOpen>
|
||||||
|
<CAccordionItem itemKey={1}>
|
||||||
|
<CAccordionHeader>Accordion Item #1</CAccordionHeader>
|
||||||
|
<CAccordionBody>
|
||||||
|
<strong>This is the first item's accordion body.</strong> 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 <code>.accordion-body</code>, though the
|
||||||
|
transition does limit overflow.
|
||||||
|
</CAccordionBody>
|
||||||
|
</CAccordionItem>
|
||||||
|
<CAccordionItem itemKey={2}>
|
||||||
|
<CAccordionHeader>Accordion Item #2</CAccordionHeader>
|
||||||
|
<CAccordionBody>
|
||||||
|
<strong>This is the second item's accordion body.</strong> 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 <code>.accordion-body</code>, though the
|
||||||
|
transition does limit overflow.
|
||||||
|
</CAccordionBody>
|
||||||
|
</CAccordionItem>
|
||||||
|
<CAccordionItem itemKey={3}>
|
||||||
|
<CAccordionHeader>Accordion Item #3</CAccordionHeader>
|
||||||
|
<CAccordionBody>
|
||||||
|
<strong>This is the second item's accordion body.</strong> 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 <code>.accordion-body</code>, though the
|
||||||
|
transition does limit overflow.
|
||||||
|
</CAccordionBody>
|
||||||
</CAccordionItem>
|
</CAccordionItem>
|
||||||
</CAccordion>
|
</CAccordion>
|
||||||
</DocsExample>
|
</DocsExample>
|
||||||
|
@ -23,7 +23,7 @@ const LiveDemo = () => {
|
|||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
||||||
<CModal visible={visible} onDismiss={() => setVisible(false)}>
|
<CModal visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>Woohoo, you're reading this text in a modal!</CModalBody>
|
<CModalBody>Woohoo, you're reading this text in a modal!</CModalBody>
|
||||||
@ -43,8 +43,8 @@ const StaticBackdrop = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Launch static backdrop modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Launch static backdrop modal</CButton>
|
||||||
<CModal visible={visible}>
|
<CModal backdrop="static" visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -67,7 +67,7 @@ const ScrollingLongContent = () => {
|
|||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
||||||
<CModal visible={visible} onDismiss={() => setVisible(false)}>
|
<CModal visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -167,7 +167,7 @@ const ScrollingLongContent2 = () => {
|
|||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
||||||
<CModal scrollable visible={visible} onDismiss={() => setVisible(false)}>
|
<CModal scrollable visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -266,8 +266,8 @@ const VerticallyCentered = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Vertically centered modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Vertically centered modal</CButton>
|
||||||
<CModal alignment="center" visible={visible}>
|
<CModal alignment="center" visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -290,8 +290,8 @@ const VerticallyCentered2 = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Vertically centered scrollable modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Vertically centered scrollable modal</CButton>
|
||||||
<CModal alignment="center" scrollable visible={visible}>
|
<CModal alignment="center" scrollable visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -333,8 +333,8 @@ const TooltipsPopovers = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
<CButton onClick={() => setVisible(!visible)}>Launch demo modal</CButton>
|
||||||
<CModal alignment="center" visible={visible}>
|
<CModal alignment="center" visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Modal title</CModalTitle>
|
<CModalTitle>Modal title</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
@ -379,20 +379,20 @@ const OptionalSizes = () => {
|
|||||||
<CButton onClick={() => setVisibleXL(!visibleXL)}>Extra large modal</CButton>
|
<CButton onClick={() => setVisibleXL(!visibleXL)}>Extra large modal</CButton>
|
||||||
<CButton onClick={() => setVisibleLg(!visibleLg)}>Large modal</CButton>
|
<CButton onClick={() => setVisibleLg(!visibleLg)}>Large modal</CButton>
|
||||||
<CButton onClick={() => setVisibleSm(!visibleSm)}>Small large modal</CButton>
|
<CButton onClick={() => setVisibleSm(!visibleSm)}>Small large modal</CButton>
|
||||||
<CModal size="xl" visible={visibleXL}>
|
<CModal size="xl" visible={visibleXL} onDismiss={() => setVisibleXL(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleXL(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Extra large modal</CModalTitle>
|
<CModalTitle>Extra large modal</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal size="lg" visible={visibleLg}>
|
<CModal size="lg" visible={visibleLg} onDismiss={() => setVisibleLg(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleLg(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Large modal</CModalTitle>
|
<CModalTitle>Large modal</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal size="sm" visible={visibleSm}>
|
<CModal size="sm" visible={visibleSm} onDismiss={() => setVisibleSm(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleSm(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Small modal</CModalTitle>
|
<CModalTitle>Small modal</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
@ -417,38 +417,38 @@ const FullscreenModal = () => {
|
|||||||
<CButton onClick={() => setVisibleLg(!visibleLg)}>Full screen below lg</CButton>
|
<CButton onClick={() => setVisibleLg(!visibleLg)}>Full screen below lg</CButton>
|
||||||
<CButton onClick={() => setVisibleXL(!visibleXL)}>Full screen below xl</CButton>
|
<CButton onClick={() => setVisibleXL(!visibleXL)}>Full screen below xl</CButton>
|
||||||
<CButton onClick={() => setVisibleXXL(!visibleXXL)}>Full screen below xxl</CButton>
|
<CButton onClick={() => setVisibleXXL(!visibleXXL)}>Full screen below xxl</CButton>
|
||||||
<CModal fullscreen visible={visible}>
|
<CModal fullscreen visible={visible} onDismiss={() => setVisible(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisible(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen</CModalTitle>
|
<CModalTitle>Full screen</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal fullscreen="sm" visible={visibleSm}>
|
<CModal fullscreen="sm" visible={visibleSm} onDismiss={() => setVisibleSm(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleSm(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen below sm</CModalTitle>
|
<CModalTitle>Full screen below sm</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal fullscreen="md" visible={visibleMd}>
|
<CModal fullscreen="md" visible={visibleMd} onDismiss={() => setVisibleMd(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleMd(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen below md</CModalTitle>
|
<CModalTitle>Full screen below md</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal fullscreen="lg" visible={visibleLg}>
|
<CModal fullscreen="lg" visible={visibleLg} onDismiss={() => setVisibleLg(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleLg(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen below lg</CModalTitle>
|
<CModalTitle>Full screen below lg</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal fullscreen="xl" visible={visibleXL}>
|
<CModal fullscreen="xl" visible={visibleXL} onDismiss={() => setVisibleXL(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleXL(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen below xl</CModalTitle>
|
<CModalTitle>Full screen below xl</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
</CModal>
|
</CModal>
|
||||||
<CModal fullscreen="xxl" visible={visibleXXL}>
|
<CModal fullscreen="xxl" visible={visibleXXL} onDismiss={() => setVisibleXXL(false)}>
|
||||||
<CModalHeader onDismiss={() => setVisibleXXL(false)}>
|
<CModalHeader>
|
||||||
<CModalTitle>Full screen below xxl</CModalTitle>
|
<CModalTitle>Full screen below xxl</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
<CModalBody>...</CModalBody>
|
<CModalBody>...</CModalBody>
|
||||||
|
Loading…
Reference in New Issue
Block a user