refactor: update examples

This commit is contained in:
Łukasz Holeczek
2021-08-29 16:10:33 +02:00
parent 1b7a092079
commit cac84bdcdd
38 changed files with 601 additions and 1422 deletions
+5 -5
View File
@@ -8,7 +8,7 @@
<CRow> <CRow>
<CCol sm="5"> <CCol sm="5">
<h4 id="traffic" class="card-title mb-0">Traffic</h4> <h4 id="traffic" class="card-title mb-0">Traffic</h4>
<div class="small text-medium-emphasis">November 2017</div> <div class="small text-medium-emphasis">January 2021</div>
</CCol> </CCol>
<CCol sm="7" class="d-none d-md-block"> <CCol sm="7" class="d-none d-md-block">
<CButton color="primary" class="float-end"> <CButton color="primary" class="float-end">
@@ -316,7 +316,7 @@
<CTableHead color="light"> <CTableHead color="light">
<CTableRow> <CTableRow>
<CTableHeaderCell class="text-center"> <CTableHeaderCell class="text-center">
<CIcon name="{cilPeople}" /> <CIcon name="cil-people" />
</CTableHeaderCell> </CTableHeaderCell>
<CTableHeaderCell>User</CTableHeaderCell> <CTableHeaderCell>User</CTableHeaderCell>
<CTableHeaderCell class="text-center" <CTableHeaderCell class="text-center"
@@ -449,7 +449,7 @@ export default {
period: "Jun 11, 2021 - Jul 10, 2021", period: "Jun 11, 2021 - Jul 10, 2021",
color: "warning", color: "warning",
}, },
payment: { name: "Stripe", icon: "cib-stripe" }, payment: { name: "Stripe", icon: "cib-cc-stripe" },
activity: "1 hour ago", activity: "1 hour ago",
}, },
{ {
@@ -461,7 +461,7 @@ export default {
period: "Jun 11, 2021 - Jul 10, 2021", period: "Jun 11, 2021 - Jul 10, 2021",
color: "danger", color: "danger",
}, },
payment: { name: "PayPal", icon: "cib-paypal" }, payment: { name: "PayPal", icon: "cib-cc-paypal" },
activity: "Last month", activity: "Last month",
}, },
{ {
@@ -477,7 +477,7 @@ export default {
period: "Jun 11, 2021 - Jul 10, 2021", period: "Jun 11, 2021 - Jul 10, 2021",
color: "primary", color: "primary",
}, },
payment: { name: "Google Wallet", icon: "cib-google-pay" }, payment: { name: "Google Wallet", icon: "cib-cc-apple-pay" },
activity: "Last week", activity: "Last week",
}, },
{ {
+4 -4
View File
@@ -12,7 +12,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Click the accordions below to expand/collapse the accordion content. Click the accordions below to expand/collapse the accordion content.
</p> </p>
<Example href="components/accordion"> <DocsExample href="components/accordion">
<CAccordion> <CAccordion>
<CAccordionItem> <CAccordionItem>
<CAccordionHeader> <CAccordionHeader>
@@ -96,7 +96,7 @@
</CAccordionCollapse> </CAccordionCollapse>
</CAccordionItem> </CAccordionItem>
</CAccordion> </CAccordion>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -110,7 +110,7 @@
corners to render accordions edge-to-edge with their parent corners to render accordions edge-to-edge with their parent
container. container.
</p> </p>
<Example href="components/accordion#flush"> <DocsExample href="components/accordion#flush">
<CAccordion flush> <CAccordion flush>
<CAccordionItem> <CAccordionItem>
<CAccordionHeader> <CAccordionHeader>
@@ -200,7 +200,7 @@
</CAccordionCollapse> </CAccordionCollapse>
</CAccordionItem> </CAccordionItem>
</CAccordion> </CAccordion>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+2 -2
View File
@@ -23,7 +23,7 @@
</a> </a>
. .
</p> </p>
<Example href="components/breadcrumb"> <DocsExample href="components/breadcrumb">
<CBreadcrumb> <CBreadcrumb>
<CBreadcrumbItem> <CBreadcrumbItem>
<CLink href="#">Home</CLink> <CLink href="#">Home</CLink>
@@ -51,7 +51,7 @@
</CBreadcrumbItem> </CBreadcrumbItem>
<CBreadcrumbItem active>Bootstrap</CBreadcrumbItem> <CBreadcrumbItem active>Bootstrap</CBreadcrumbItem>
</CBreadcrumb> </CBreadcrumb>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+48 -48
View File
@@ -26,7 +26,7 @@
width. Cards have no fixed width to start, so they&#39;ll naturally width. Cards have no fixed width to start, so they&#39;ll naturally
fill the full width of its parent element. fill the full width of its parent element.
</p> </p>
<Example href="components/card"> <DocsExample href="components/card">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardImage <CCardImage
component="svg" component="svg"
@@ -55,7 +55,7 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -67,11 +67,11 @@
The main block of a card is the <code>&lt;CCardBody&gt;</code>. Use The main block of a card is the <code>&lt;CCardBody&gt;</code>. Use
it whenever you need a padded section within a card. it whenever you need a padded section within a card.
</p> </p>
<Example href="components/card/#body"> <DocsExample href="components/card/#body">
<CCard> <CCard>
<CCardBody>This is some text within a card body.</CCardBody> <CCardBody>This is some text within a card body.</CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -96,7 +96,7 @@
<code>&lt;CCardBody&gt;</code> item, the card title, and subtitle <code>&lt;CCardBody&gt;</code> item, the card title, and subtitle
are arranged rightly. are arranged rightly.
</p> </p>
<Example href="components/card/#titles-text-and-links"> <DocsExample href="components/card/#titles-text-and-links">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardBody> <CCardBody>
<CCardTitle>Card title</CCardTitle> <CCardTitle>Card title</CCardTitle>
@@ -111,7 +111,7 @@
<CCardLink href="#">Another link</CCardLink> <CCardLink href="#">Another link</CCardLink>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -125,7 +125,7 @@
within <code>.card-text</code> can additionally be styled with the within <code>.card-text</code> can additionally be styled with the
regular HTML tags. regular HTML tags.
</p> </p>
<Example href="components/card/#images"> <DocsExample href="components/card/#images">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardImage <CCardImage
component="svg" component="svg"
@@ -152,7 +152,7 @@
</CCardText> </CCardText>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -165,7 +165,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Create lists of content in a card with a flush list group. Create lists of content in a card with a flush list group.
</p> </p>
<Example href="components/card/#list-groups"> <DocsExample href="components/card/#list-groups">
<CRow> <CRow>
<CCol lg="{4}"> <CCol lg="{4}">
<CCard> <CCard>
@@ -197,7 +197,7 @@
</CCard> </CCard>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -212,7 +212,7 @@
throw everything in there. Shown below are image styles, blocks, throw everything in there. Shown below are image styles, blocks,
text styles, and a list groupall wrapped in a fixed-width card. text styles, and a list groupall wrapped in a fixed-width card.
</p> </p>
<Example href="components/card/#kitchen-sink"> <DocsExample href="components/card/#kitchen-sink">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardImage <CCardImage
component="svg" component="svg"
@@ -249,7 +249,7 @@
<CCardLink href="#">Another link</CCardLink> <CCardLink href="#">Another link</CCardLink>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -262,7 +262,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Add an optional header and/or footer within a card. Add an optional header and/or footer within a card.
</p> </p>
<Example href="components/card/#header-and-footer"> <DocsExample href="components/card/#header-and-footer">
<CCard> <CCard>
<CCardHeader>Header</CCardHeader> <CCardHeader>Header</CCardHeader>
<CCardBody> <CCardBody>
@@ -274,12 +274,12 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Card headers can be styled by adding ex. Card headers can be styled by adding ex.
<code>component=&#34;h5&#34;</code>. <code>component=&#34;h5&#34;</code>.
</p> </p>
<Example href="components/card/#header-and-footer"> <DocsExample href="components/card/#header-and-footer">
<CCard> <CCard>
<CCardHeader component="h5">Header</CCardHeader> <CCardHeader component="h5">Header</CCardHeader>
<CCardBody> <CCardBody>
@@ -291,8 +291,8 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
<Example href="components/card/#header-and-footer"> <DocsExample href="components/card/#header-and-footer">
<CCard> <CCard>
<CCardHeader>Quote</CCardHeader> <CCardHeader>Quote</CCardHeader>
<CCardBody> <CCardBody>
@@ -308,8 +308,8 @@
</blockquote> </blockquote>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
<Example href="components/card/#header-and-footer"> <DocsExample href="components/card/#header-and-footer">
<CCard class="text-center"> <CCard class="text-center">
<CCardHeader>Header</CCardHeader> <CCardHeader>Header</CCardHeader>
<CCardBody> <CCardBody>
@@ -322,7 +322,7 @@
</CCardBody> </CCardBody>
<CCardFooter class="text-medium-emphasis">2 days ago</CCardFooter> <CCardFooter class="text-medium-emphasis">2 days ago</CCardFooter>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -340,7 +340,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Using the grid, wrap cards in columns and rows as needed. Using the grid, wrap cards in columns and rows as needed.
</p> </p>
<Example href="components/card/#sizing"> <DocsExample href="components/card/#sizing">
<CRow> <CRow>
<CCol sm="{6}"> <CCol sm="{6}">
<CCard> <CCard>
@@ -367,7 +367,7 @@
</CCard> </CCard>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<h3>Using utilities</h3> <h3>Using utilities</h3>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use some of Use some of
@@ -376,7 +376,7 @@
> >
to rapidly set a card&#39;s width. to rapidly set a card&#39;s width.
</p> </p>
<Example href="components/card/#sizing"> <DocsExample href="components/card/#sizing">
<CCard class="w-75"> <CCard class="w-75">
<CCardBody> <CCardBody>
<CCardTitle>Card title</CCardTitle> <CCardTitle>Card title</CCardTitle>
@@ -397,13 +397,13 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
<strong>Using custom CSS</strong> <strong>Using custom CSS</strong>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use custom CSS in your stylesheets or as inline styles to set a Use custom CSS in your stylesheets or as inline styles to set a
width. width.
</p> </p>
<Example href="components/card/#sizing"> <DocsExample href="components/card/#sizing">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardBody> <CCardBody>
<CCardTitle>Special title treatment</CCardTitle> <CCardTitle>Special title treatment</CCardTitle>
@@ -414,7 +414,7 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -432,7 +432,7 @@
> >
. .
</p> </p>
<Example href="components/card/#text-alignment"> <DocsExample href="components/card/#text-alignment">
<CCard style="width: 18rem"> <CCard style="width: 18rem">
<CCardBody> <CCardBody>
<CCardTitle>Special title treatment</CCardTitle> <CCardTitle>Special title treatment</CCardTitle>
@@ -463,7 +463,7 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -477,7 +477,7 @@
Add some navigation to a <code>&lt;CCardHeader&gt;</code> with our Add some navigation to a <code>&lt;CCardHeader&gt;</code> with our
<code>&lt;CNav&gt;</code> component. <code>&lt;CNav&gt;</code> component.
</p> </p>
<Example href="components/card/##navigation"> <DocsExample href="components/card/##navigation">
<CCard class="text-center"> <CCard class="text-center">
<CCardHeader> <CCardHeader>
<CNav variant="tabs" class="card-header-tabs"> <CNav variant="tabs" class="card-header-tabs">
@@ -501,8 +501,8 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
<Example href="components/card/##navigation"> <DocsExample href="components/card/##navigation">
<CCard class="text-center"> <CCard class="text-center">
<CCardHeader> <CCardHeader>
<CNav variant="pills" class="card-header-pills"> <CNav variant="pills" class="card-header-pills">
@@ -526,7 +526,7 @@
<CButton href="#">Go somewhere</CButton> <CButton href="#">Go somewhere</CButton>
</CCardBody> </CCardBody>
</CCard> </CCard>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -540,7 +540,7 @@
Similar to headers and footers, cards can include top and bottom Similar to headers and footers, cards can include top and bottom
&#34;image caps&#34;images at the top or bottom of a card. &#34;image caps&#34;images at the top or bottom of a card.
</p> </p>
<Example href="components/card/#image-caps"> <DocsExample href="components/card/#image-caps">
<CRow> <CRow>
<CCol lg="{6}"> <CCol lg="{6}">
<CCard class="mb-3"> <CCard class="mb-3">
@@ -613,7 +613,7 @@
</CCard> </CCard>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -631,7 +631,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use <code>color</code> property to change the appearance of a card. Use <code>color</code> property to change the appearance of a card.
</p> </p>
<Example href="components/card/#background-and-color"> <DocsExample href="components/card/#background-and-color">
<CRow> <CRow>
{[ { color: 'primary', textColor: 'white' }, { color: 'secondary', {[ { color: 'primary', textColor: 'white' }, { color: 'secondary',
textColor: 'white' }, { color: 'success', textColor: 'white' }, { textColor: 'white' }, { color: 'success', textColor: 'white' }, {
@@ -656,7 +656,7 @@
</CCol> </CCol>
))} ))}
</CRow> </CRow>
</Example> </DocsExample>
<h3>Border</h3> <h3>Border</h3>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use Use
@@ -668,7 +668,7 @@
<code>&lt;CCard&gt;</code> or a subset of the card&#39;s contents as <code>&lt;CCard&gt;</code> or a subset of the card&#39;s contents as
shown below. shown below.
</p> </p>
<Example href="components/card/#border"> <DocsExample href="components/card/#border">
<template <template
v-for="item in [ v-for="item in [
{ color: 'primary', textColor: 'primary' }, { color: 'primary', textColor: 'primary' },
@@ -697,7 +697,7 @@
</CCardBody> </CCardBody>
</CCard> </CCard>
</template> </template>
</Example> </DocsExample>
<h3>Top border</h3> <h3>Top border</h3>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use Use
@@ -709,7 +709,7 @@
<code>&lt;CCard&gt;</code> or a subset of the card&#39;s contents as <code>&lt;CCard&gt;</code> or a subset of the card&#39;s contents as
shown below. shown below.
</p> </p>
<Example href="components/card/#top-border"> <DocsExample href="components/card/#top-border">
<template v-for="(item) in [ <template v-for="(item) in [
{ color: 'primary', textColor: 'primary' }, { color: 'primary', textColor: 'primary' },
{ color: 'secondary', textColor: 'secondary' }, { color: 'secondary', textColor: 'secondary' },
@@ -728,7 +728,7 @@
</CCardBody> </CCardBody>
</CCard> </CCard>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -744,7 +744,7 @@
use <code>display: flex;</code> to become attached with uniform use <code>display: flex;</code> to become attached with uniform
dimensions starting at the <code>sm</code> breakpoint. dimensions starting at the <code>sm</code> breakpoint.
</p> </p>
<Example href="components/card/#card-groups"> <DocsExample href="components/card/#card-groups">
<CCardGroup> <CCardGroup>
<CCard> <CCard>
<CCardImage <CCardImage
@@ -845,12 +845,12 @@
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCardGroup> </CCardGroup>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
When using card groups with footers, their content will When using card groups with footers, their content will
automatically line up. automatically line up.
</p> </p>
<Example href="components/card/#card-groups"> <DocsExample href="components/card/#card-groups">
<CCardGroup> <CCardGroup>
<CCard> <CCard>
<CCardImage <CCardImage
@@ -951,7 +951,7 @@
</CCardFooter> </CCardFooter>
</CCard> </CCard>
</CCardGroup> </CCardGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -974,7 +974,7 @@
<code>md=&#123;&#123;cols: 1&#125;&#125;</code> splitting four cards <code>md=&#123;&#123;cols: 1&#125;&#125;</code> splitting four cards
to equal width across multiple rows, from the medium breakpoint up. to equal width across multiple rows, from the medium breakpoint up.
</p> </p>
<Example href="components/card/#grid-cards"> <DocsExample href="components/card/#grid-cards">
<CRow xs="{ cols: 1, gutter: 4 }" md="{ cols: 2 }"> <CRow xs="{ cols: 1, gutter: 4 }" md="{ cols: 2 }">
<CCol xs> <CCol xs>
<CCard> <CCard>
@@ -1117,12 +1117,12 @@
</CCard> </CCard>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Change it to <code>md=&#123;&#123; cols: 3&#125;&#125;</code> and Change it to <code>md=&#123;&#123; cols: 3&#125;&#125;</code> and
you&#39;ll see the fourth card wrap. you&#39;ll see the fourth card wrap.
</p> </p>
<Example href="components/card/#grid-cards"> <DocsExample href="components/card/#grid-cards">
<CRow xs="{ cols: 1, gutter: 4 }" md="{ cols: 3 }"> <CRow xs="{ cols: 1, gutter: 4 }" md="{ cols: 3 }">
<CCol xs> <CCol xs>
<CCard> <CCard>
@@ -1265,7 +1265,7 @@
</CCard> </CCard>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+18 -15
View File
@@ -1,6 +1,9 @@
<template> <template>
<CRow> <CRow>
<CCol> <CCol :xs="12">
<DocsCallout name="Carousel" href="components/breadcrumb" />
</CCol>
<CCol :xs="12">
<CCard class="mb-4"> <CCard class="mb-4">
<CCardHeader> <CCardHeader>
<strong>Vue Carousels</strong> <small>Slide only</small> <strong>Vue Carousels</strong> <small>Slide only</small>
@@ -9,7 +12,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Heres a carousel with slides Heres a carousel with slides
</p> </p>
<Example href="components/carousel.html#slides-only"> <DocsExample href="components/carousel.html#slides-only">
<CCarousel> <CCarousel>
<CCarouselItem> <CCarouselItem>
<img <img
@@ -33,7 +36,7 @@
/> />
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -45,7 +48,7 @@
Adding in the previous and next controls by Adding in the previous and next controls by
<code>controls</code> property. <code>controls</code> property.
</p> </p>
<Example href="components/carousel.html#with-controls"> <DocsExample href="components/carousel.html#with-controls">
<CCarousel controls> <CCarousel controls>
<CCarouselItem> <CCarouselItem>
<img <img
@@ -69,7 +72,7 @@
/> />
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -81,7 +84,7 @@
You can attach the indicators to the carousel, lengthwise the You can attach the indicators to the carousel, lengthwise the
controls, too. controls, too.
</p> </p>
<Example href="components/carousel.html#with-indicators"> <DocsExample href="components/carousel.html#with-indicators">
<CCarousel controls indicators> <CCarousel controls indicators>
<CCarouselItem> <CCarouselItem>
<img <img
@@ -105,7 +108,7 @@
/> />
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -123,7 +126,7 @@
>. We hide them with <code>.d-none</code> and draw them back on >. We hide them with <code>.d-none</code> and draw them back on
medium-sized devices with <code>.d-md-block</code>. medium-sized devices with <code>.d-md-block</code>.
</p> </p>
<Example href="components/carousel.html#with-captions"> <DocsExample href="components/carousel.html#with-captions">
<CCarousel controls indicators> <CCarousel controls indicators>
<CCarouselItem> <CCarouselItem>
<img <img
@@ -165,7 +168,7 @@
</CCarouselCaption> </CCarouselCaption>
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -177,7 +180,7 @@
Add <code>transition=&#34;crossfade&#34;</code> to your carousel to Add <code>transition=&#34;crossfade&#34;</code> to your carousel to
animate slides with a fade transition instead of a slide. animate slides with a fade transition instead of a slide.
</p> </p>
<Example href="components/carousel.html#crossfade"> <DocsExample href="components/carousel.html#crossfade">
<CCarousel controls indicators transition="crossfade"> <CCarousel controls indicators transition="crossfade">
<CCarouselItem> <CCarouselItem>
<img <img
@@ -201,7 +204,7 @@
/> />
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -217,7 +220,7 @@
additional Sass variables that customize the <code>color</code> and additional Sass variables that customize the <code>color</code> and
<code>background-color</code>. <code>background-color</code>.
</p> </p>
<Example href="components/carousel.html#dark-variant"> <DocsExample href="components/carousel.html#dark-variant">
<CCarousel controls indicators dark> <CCarousel controls indicators dark>
<CCarouselItem> <CCarouselItem>
<img <img
@@ -241,7 +244,7 @@
/> />
</CCarouselItem> </CCarouselItem>
</CCarousel> </CCarousel>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -250,6 +253,6 @@
<script> <script>
export default { export default {
name: "Carousels", name: 'Carousels',
}; }
</script> </script>
+13 -10
View File
@@ -1,6 +1,9 @@
<template> <template>
<CRow> <CRow>
<CCol> <CCol :xs="12">
<DocsCallout name="Collapse" href="components/breadcrumb" />
</CCol>
<CCol :xs="12">
<CCard class="mb-4"> <CCard class="mb-4">
<CCardHeader> <CCardHeader>
<strong>Vue Collapse</strong> <strong>Vue Collapse</strong>
@@ -9,7 +12,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
You can use a link or a button component. You can use a link or a button component.
</p> </p>
<Example href="components/collapse.html#example"> <DocsExample href="components/collapse.html#example">
<CButton color="primary" href="#" @click="visible = !visible" <CButton color="primary" href="#" @click="visible = !visible"
>Link</CButton >Link</CButton
> >
@@ -26,7 +29,7 @@
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCollapse> </CCollapse>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -38,7 +41,7 @@
A <code>&lt;CButton&gt;</code> can show and hide multiple elements. A <code>&lt;CButton&gt;</code> can show and hide multiple elements.
</p> </p>
<h4 class="mt-4">Toggle multiple targets</h4> <h4 class="mt-4">Toggle multiple targets</h4>
<Example href="components/collapse.html#multiple-targets"> <DocsExample href="components/collapse.html#multiple-targets">
<CButton color="primary" @click="visibleA = !visibleA" <CButton color="primary" @click="visibleA = !visibleA"
>Toggle first element</CButton >Toggle first element</CButton
> >
@@ -49,8 +52,8 @@
color="primary" color="primary"
@click=" @click="
() => { () => {
visibleA = !visibleA; visibleA = !visibleA
visibleB = !visibleB; visibleB = !visibleB
} }
" "
> >
@@ -82,7 +85,7 @@
</CCollapse> </CCollapse>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -91,13 +94,13 @@
<script> <script>
export default { export default {
name: "Breadcrumbs", name: 'Breadcrumbs',
data() { data() {
return { return {
visible: false, visible: false,
visibleA: false, visibleA: false,
visibleB: false, visibleB: false,
}; }
}, },
}; }
</script> </script>
-817
View File
@@ -1,817 +0,0 @@
<template>
<CRow>
<CCol>
<CCard>
<CCardHeader>
<strong>Vue Forms</strong>
</CCardHeader>
<CCardBody>
<CRow>
<CCol md="6">
<h4>Overview</h4>
<Example href="forms/overview.html#overview">
<CForm>
<div class="mb-3">
<CFormLabel for="exampleInputEmail1">Email address</CFormLabel>
<CFormInput type="email" id="exampleInputEmail1" aria-describedby="emailHelp" />
<CFormText id="emailHelp">We'll never share your email with anyone else.</CFormText>
</div>
<div class="mb-3">
<CFormLabel for="exampleInputPassword1">Email Password</CFormLabel>
<CFormInput type="password" id="exampleInputPassword1" />
</div>
<CFormCheck
class="mb-3"
label="Check me out"
/>
<CButton type="submit" color="primary">
Submit
</CButton>
</CForm>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Disabled fieldset example</h4>
<Example href="forms/overview.html#disabled-forms">
<CForm>
<fieldset disabled>
<div class="mb-3">
<CFormLabel for="disabledTextInput">Disabled input</CFormLabel>
<CFormInput id="disabledTextInput" placeholder="Disabled input" />
</div>
<div class="mb-3">
<CFormLabel for="disabledSelect">Disabled select menu</CFormLabel>
<CFormSelect id="disabledSelect">
<option>Disabled select</option>
</CFormSelect>
</div>
<div class="mb-3">
<CFormCheck id="disabledFieldsetCheck" label="Can't check this" disabled />
</div>
<CButton type="submit">Submit</CButton>
</fieldset>
</CForm>
</Example>
</CCol>
</CRow>
<h4 class="mt-4">Sizing</h4>
<Example href="forms/form-control.html#sizing">
<CFormInput type="text" size="lg" placeholder="Large input" aria-label="lg input example"/>
<br/>
<CFormInput type="text" placeholder="Default input" aria-label="default input example"/>
<br/>
<CFormInput type="text" size="sm" placeholder="Small input" aria-label="sm input example"/>
</Example>
<h4 class="mt-4">Input file</h4>
<Example href="forms/form-control.html#file-input">
<div class="mb-3">
<CFormLabel for="formFile">Default file input example</CFormLabel>
<CFormInput type="file" id="formFile"/>
</div>
<div class="mb-3">
<CFormLabel for="formFileMultiple">Multiple files input example</CFormLabel>
<CFormInput type="file" id="formFileMultiple" multiple/>
</div>
<div class="mb-3">
<CFormLabel for="formFileDisabled">Disabled file input example</CFormLabel>
<CFormInput type="file" id="formFileDisabled" disabled/>
</div>
<div class="mb-3">
<CFormLabel for="formFileSm">Small file input example</CFormLabel>
<CFormInput type="file" size="sm" id="formFileSm"/>
</div>
<div>
<CFormLabel for="formFileLg">Large file input example</CFormLabel>
<CFormInput type="file" size="lg" id="formFileLg"/>
</div>
</Example>
<h4 class="mt-4">Color</h4>
<Example href="forms/form-control.html#color">
<CFormLabel for="exampleColorInput">Color picker</CFormLabel>
<CFormInput type="color" id="exampleColorInput" defaultValue="#563d7c" title="Choose your color" />
</Example>
<h4 class="mt-4">Select</h4>
<Example href="forms/select.html#default">
<CRow>
<CCol md="3">
<CFormSelect class="mb-3" aria-label="Default select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
<CCol md="3">
<CFormSelect size="lg" class="mb-3" aria-label="Large select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
<CCol md="3">
<CFormSelect size="sm" class="mb-3" aria-label="Small select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
<CCol md="3">
<CFormSelect size="lg" class="mb-3" multiple aria-label="Multiple select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
<CCol md="3">
<CFormSelect htmlSize="3" class="mb-3" multiple aria-label="size 3 select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
<CCol md="3">
<CFormSelect aria-label="Disabled select example" class="mb-3" disabled>
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Checks</h4>
<Example href="forms/checks-radios.html#checks">
<CRow>
<CCol md="4">
<CFormCheck id="flexCheckDefault" label="Default checkbox"/>
<CFormCheck id="flexCheckChecked" label="Checked checkbox" defaultChecked />
</CCol>
<CCol md="4">
<CFormCheck label="Disabled checkbox" disabled/>
<CFormCheck label="Disabled checked checkbox" defaultChecked disabled/>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Radios</h4>
<Example href="forms/checks-radios.html#radios">
<CRow>
<CCol md="4">
<CFormCheck type="radio" name="flexRadioDefault" id="flexRadioDefault1" label="Default radio"/>
<CFormCheck type="radio" name="flexRadioDefault" id="flexRadioDefault2" label="Checked radio" defaultChecked/>
</CCol>
<CCol md="4">
<CFormCheck type="radio" name="flexRadioDisabled" id="flexRadioDisabled" label="Disabled radio" disabled/>
<CFormCheck type="radio" name="flexRadioDisabled" id="flexRadioCheckedDisabled" label="Disabled checked radio" defaultChecked disabled/>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Switches</h4>
<Example href="forms/checks-radios.html#switches">
<CRow>
<CCol md="4">
<CFormSwitch label="Default switch checkbox input" id="formSwitchCheckDefault"/>
<CFormSwitch label="Checked switch checkbox input" id="formSwitchCheckChecked" defaultChecked/>
<CFormSwitch label="Disabled switch checkbox input" id="formSwitchCheckDisabled" disabled/>
<CFormSwitch label="Disabled checked switch checkbox input" id="formSwitchCheckCheckedDisabled" defaultChecked disabled/>
</CCol>
<CCol md="4">
<CFormSwitch label="Default switch checkbox input" id="formSwitchCheckDefault"/>
<CFormSwitch size="lg" label="Large switch checkbox input" id="formSwitchCheckDefaultLg"/>
<CFormSwitch size="xl" label="Extra large switch checkbox input" id="formSwitchCheckDefaultXL"/>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Inline Checks and Radios</h4>
<Example href="forms/checks-radios.html#inline">
<CRow>
<CCol md="4">
<h5 class="mt-2 mb-2">Checks</h5>
<CFormCheck inline id="inlineCheckbox1" value="option1" label="1"/>
<CFormCheck inline id="inlineCheckbox2" value="option2" label="2"/>
<CFormCheck inline id="inlineCheckbox3" value="option3" label="3 (disabled)" disabled/>
</CCol>
<CCol md="4">
<h5 class="mt-2 mb-2">Radios</h5>
<CFormCheck inline type="radio" name="inlineRadioOptions" id="inlineCheckbox1" value="option1" label="1"/>
<CFormCheck inline type="radio" name="inlineRadioOptions" id="inlineCheckbox2" value="option2" label="2"/>
<CFormCheck inline type="radio" name="inlineRadioOptions" id="inlineCheckbox3" value="option3" label="3 (disabled)" disabled/>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Toggle buttons</h4>
<Example href="forms/checks-radios.html#checkbox-toggle-buttons">
<CRow>
<CCol md="4">
<h5 class="mt-2 mb-2">Checkbox toggle buttons</h5>
<div class="mb-2">
<CFormCheck :button="{ color: 'primary' }" id="btn-check" autoComplete="off" label="Single toggle"/>
</div>
<div class="mb-2">
<CFormCheck :button="{ color: 'primary' }" id="btn-check-2" autoComplete="off" label="Checked" defaultChecked/>
</div>
<div class="mb-2">
<CFormCheck :button="{ color: 'primary' }" id="btn-check-3" autoComplete="off" label="Disabled" disabled/>
</div>
</CCol>
<CCol md="4">
<h5 class="mt-2 mb-2">Radio toggle buttons</h5>
<CFormCheck :button="{ color: 'secondary' }" type="radio" name="options" id="option1" autoComplete="off" label="Checked" defaultChecked/>
<CFormCheck :button="{ color: 'secondary' }" type="radio" name="options" id="option2" autoComplete="off" label="Radio"/>
<CFormCheck :button="{ color: 'secondary' }" type="radio" name="options" id="option3" autoComplete="off" label="Radio" disabled/>
<CFormCheck :button="{ color: 'secondary' }" type="radio" name="options" id="option4" autoComplete="off" label="Radio"/>
</CCol>
<CCol md="4">
<h5 class="mt-2 mb-2">Outlined styles</h5>
<div>
<CFormCheck :button="{ color: 'primary', variant: 'outline' }" id="btn-check-outlined" autoComplete="off" label="Single toggle"/>
</div>
<div>
<CFormCheck :button="{ color: 'secondary', variant: 'outline' }" id="btn-check-2-outlined" autoComplete="off" label="Checked" defaultChecked/>
</div>
<div>
<CFormCheck :button="{ color: 'success', variant: 'outline' }" type="radio" name="options-outlined" id="success-outlined" autoComplete="off" label="Radio" defaultChecked/>
<CFormCheck :button="{ color: 'danger', variant: 'outline' }" type="radio" name="options-outlined" id="danger-outlined" autoComplete="off" label="Radio"/>
</div>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Range</h4>
<Example href="forms/range.html#overview">
<CRow>
<CCol md="6">
<CFormLabel for="customRange1">Example range</CFormLabel>
<CFormRange id="customRange1"/>
</CCol>
<CCol md="6">
<CFormLabel for="disabledRange">Disabled range</CFormLabel>
<CFormRange id="disabledRange" disabled/>
</CCol>
<CCol md="6">
<CFormLabel for="customRange2">Example range max="5"</CFormLabel>
<CFormRange min="0" max="5" defaultValue="3" id="customRange2"/>
</CCol>
<CCol md="6">
<CFormLabel for="customRange3">Example range step="0.5"</CFormLabel>
<CFormRange min="0" max="5" step="0.5" defaultValue="3" id="customRange3"/>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Floating labels</h4>
<Example href="forms/floating-labels.html#example">
<CRow>
<CCol md="6">
<h5 class="mt-2 mb-2">Input</h5>
<CFormFloating class="mb-3">
<CFormInput type="email" id="floatingInput" placeholder="name@example.com" />
<CFormLabel for="floatingInput">Email address</CFormLabel>
</CFormFloating>
<CFormFloating>
<CFormInput type="password" id="floatingPassword" placeholder="Password" />
<CFormLabel for="exampleFormControlPassword">Password</CFormLabel>
</CFormFloating>
</CCol>
<CCol md="6">
<h5 class="mt-2 mb-2">Input with value</h5>
<CFormFloating>
<CFormInput
type="email"
id="floatingInputValue"
placeholder="name@example.com"
value="test@example.com"
/>
<CFormLabel for="floatingInputValue">Input with value</CFormLabel>
</CFormFloating>
</CCol>
<CCol md="6">
<h5 class="mt-2 mb-2">Text areas</h5>
<CFormFloating>
<CFormTextarea
id="floatingTextarea"
placeholder="Leave a comment here"
></CFormTextarea>
<CFormLabel for="floatingTextarea">Comments</CFormLabel>
</CFormFloating>
</CCol>
<CCol md="6">
<h5 class="mt-2 mb-2">Select</h5>
<CFormFloating>
<CFormSelect id="floatingSelect" aria-label="Floating label select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
<CFormLabel for="floatingSelect">Works with selects</CFormLabel>
</CFormFloating>
</CCol>
</CRow>
</Example>
<h4 class="mt-4">Vue input group (basic example)</h4>
<Example href="forms/input-group.html#basic-example">
<CInputGroup class="mb-3">
<CInputGroupText id="basic-addon1">@</CInputGroupText>
<CFormInput placeholder="Username" aria-label="Username" aria-describedby="basic-addon1"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormInput placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2"/>
<CInputGroupText id="basic-addon2">@example.com</CInputGroupText>
</CInputGroup>
<CFormLabel for="basic-url">Your vanity URL</CFormLabel>
<CInputGroup class="mb-3">
<CInputGroupText id="basic-addon3">https://example.com/users/</CInputGroupText>
<CFormInput id="basic-url" aria-describedby="basic-addon3"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CInputGroupText>$</CInputGroupText>
<CFormInput aria-label="Amount (to the nearest dollar)"/>
<CInputGroupText>.00</CInputGroupText>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormInput placeholder="Username" aria-label="Username"/>
<CInputGroupText>@</CInputGroupText>
<CFormInput placeholder="Server" aria-label="Server"/>
</CInputGroup>
<CInputGroup>
<CInputGroupText>With textarea</CInputGroupText>
<CFormTextarea aria-label="With textarea"></CFormTextarea>
</CInputGroup>
</Example>
<CRow>
<CCol md="6">
<h4 class="mt-4">Input group sizing</h4>
<Example href="forms/input-group.html#sizing">
<CInputGroup size="sm" class="mb-3">
<CInputGroupText id="inputGroup-sizing-sm">Small</CInputGroupText>
<CFormInput aria-label="Sizing example input" aria-describedby="inputGroup-sizing-sm"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CInputGroupText id="inputGroup-sizing-default">Default</CInputGroupText>
<CFormInput aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default"/>
</CInputGroup>
<CInputGroup size="lg">
<CInputGroupText id="inputGroup-sizing-lg">Large</CInputGroupText>
<CFormInput aria-label="Sizing example input" aria-describedby="inputGroup-sizing-lg"/>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Checkboxes and radios</h4>
<Example href="forms/input-group.html#checkboxes-and-radios">
<CInputGroup class="mb-3">
<CInputGroupText>
<CFormCheck type="checkbox" value="" aria-label="Checkbox for following text input"/>
</CInputGroupText>
<CFormInput aria-label="Text input with checkbox"/>
</CInputGroup>
<CInputGroup>
<CInputGroupText>
<CFormCheck type="radio" value="" aria-label="Radio button for following text input"/>
</CInputGroupText>
<CFormInput aria-label="Text input with radio button"/>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Multiple inputs</h4>
<Example href="forms/input-group.html#multiple-inputs">
<CInputGroup>
<CInputGroupText>First and last name</CInputGroupText>
<CFormInput aria-label="First name"/>
<CFormInput aria-label="Last name"/>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Multiple addons</h4>
<Example href="forms/input-group.html#multiple-addons">
<CInputGroup class="mb-3">
<CInputGroupText>$</CInputGroupText>
<CInputGroupText>0.00</CInputGroupText>
<CFormInput aria-label="Dollar amount (with dot and two decimal places)"/>
</CInputGroup>
<CInputGroup>
<CFormInput aria-label="Dollar amount (with dot and two decimal places)"/>
<CInputGroupText>$</CInputGroupText>
<CInputGroupText>0.00</CInputGroupText>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Button addons</h4>
<Example href="forms/input-group.html#button-addons">
<CInputGroup class="mb-3">
<CButton type="button" color="secondary" variant="outline" id="button-addon1">Button</CButton>
<CFormInput placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormInput placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="button-addon2"/>
<CButton type="button" color="secondary" variant="outline" id="button-addon2">Button</CButton>
</CInputGroup>
<CInputGroup class="mb-3">
<CButton type="button" color="secondary" variant="outline">Button</CButton>
<CButton type="button" color="secondary" variant="outline">Button</CButton>
<CFormInput placeholder="" aria-label="Example text with two button addons"/>
</CInputGroup>
<CInputGroup>
<CFormInput placeholder="Recipient's username" aria-label="Recipient's username with two button addons"/>
<CButton type="button" color="secondary" variant="outline">Button</CButton>
<CButton type="button" color="secondary" variant="outline">Button</CButton>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Buttons with dropdowns</h4>
<Example href="forms/input-group.html#buttons-with-dropdowns">
<CInputGroup class="mb-3">
<CDropdown variant="input-group">
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
<CFormInput aria-label="Text input with dropdown button"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormInput aria-label="Text input with dropdown button"/>
<CDropdown alignment="end" variant="input-group">
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
</CInputGroup>
<CInputGroup>
<CDropdown variant="input-group">
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
<CFormInput aria-label="Text input with 2 dropdown buttons"/>
<CDropdown alignment="end" variant="input-group">
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Segmented buttons</h4>
<Example href="forms/input-group.html#segmented-buttons">
<CInputGroup class="mb-3">
<CDropdown variant="input-group">
<CButton type="button" color="secondary" variant="outline">Action</CButton>
<CDropdownToggle color="secondary" variant="outline" split/>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
<CFormInput aria-label="Text input with segmented dropdown button"/>
</CInputGroup>
<CInputGroup>
<CFormInput aria-label="Text input with segmented dropdown button"/>
<CDropdown alignment="end" variant="input-group">
<CButton type="button" color="secondary" variant="outline">Action</CButton>
<CDropdownToggle color="secondary" variant="outline" split/>
<CDropdownMenu>
<CDropdownItem href="#">Action</CDropdownItem>
<CDropdownItem href="#">Another action</CDropdownItem>
<CDropdownItem href="#">Something else here</CDropdownItem>
<CDropdownDivider/>
<CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu>
</CDropdown>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Custom select</h4>
<Example href="forms/input-group.html#custom-select">
<CInputGroup class="mb-3">
<CInputGroupText component="label" for="inputGroupSelect01">Options</CInputGroupText>
<CFormSelect id="inputGroupSelect01">
<option>Choose...</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormSelect id="inputGroupSelect02">
<option>Choose...</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
<CInputGroupText component="label" for="inputGroupSelect02">Options</CInputGroupText>
</CInputGroup>
<CInputGroup class="mb-3">
<CButton type="button" color="secondary" variant="outline">Button</CButton>
<CFormSelect id="inputGroupSelect03" aria-label="Example select with button addon">
<option>Choose...</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
</CInputGroup>
<CInputGroup>
<CFormSelect id="inputGroupSelect04" aria-label="Example select with button addon">
<option>Choose...</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
<CButton type="button" color="secondary" variant="outline">Button</CButton>
</CInputGroup>
</Example>
</CCol>
<CCol md="6">
<h4 class="mt-4">Custom file input</h4>
<Example href="forms/input-group.html#custom-file-input">
<CInputGroup class="mb-3">
<CInputGroupText component="label" for="inputGroupFile01">Upload</CInputGroupText>
<CFormInput type="file" id="inputGroupFile01"/>
</CInputGroup>
<CInputGroup class="mb-3">
<CFormInput type="file" id="inputGroupFile02"/>
<CInputGroupText component="label" for="inputGroupFile02">Upload</CInputGroupText>
</CInputGroup>
<CInputGroup class="mb-3">
<CButton type="button" color="secondary" variant="outline" id="inputGroupFileAddon03">Button</CButton>
<CFormInput type="file" id="inputGroupFile03" aria-describedby="inputGroupFileAddon03" aria-label="Upload"/>
</CInputGroup>
<CInputGroup>
<CFormInput type="file" id="inputGroupFile04" aria-describedby="inputGroupFileAddon04" aria-label="Upload"/>
<CButton type="button" color="secondary" variant="outline" id="inputGroupFileAddon04">Button</CButton>
</CInputGroup>
</Example>
</CCol>
</CRow>
<CRow>
<CCol md="8">
<h4 class="mt-4">Horizonstal form</h4>
<Example href="forms/layout.html#horizontal-form">
<CForm>
<CRow class="mb-3">
<CFormLabel for="inputEmail3" class="col-sm-2 col-form-label">Email</CFormLabel>
<CCol sm="10">
<CFormInput type="email" id="inputEmail3"/>
</CCol>
</CRow>
<CRow class="mb-3">
<CFormLabel for="inputPassword3" class="col-sm-2 col-form-label">Password</CFormLabel>
<CCol sm="10">
<CFormInput type="password" id="inputPassword3"/>
</CCol>
</CRow>
<fieldset class="row mb-3">
<legend class="col-form-label col-sm-2 pt-0">Radios</legend>
<CCol sm="10">
<CFormCheck type="radio" name="gridRadios" id="gridRadios1" value="option1" label="First radio" defaultChecked/>
<CFormCheck type="radio" name="gridRadios" id="gridRadios2" value="option2" label="Second radio"/>
<CFormCheck type="radio" name="gridRadios" id="gridRadios3" value="option3" label="Third disabled radio" disabled/>
</CCol>
</fieldset>
<CRow class="mb-3">
<div class="col-sm-10 offset-sm-2">
<CFormCheck type="checkbox" id="gridCheck1" label="Example checkbox"/>
</div>
</CRow>
<CButton type="submit">Sign in</CButton>
</CForm>
</Example>
</CCol>
</CRow>
<h4 class="mt-4">Vue form validation custom styles</h4>
<Example href="forms/validation.html#custom-styles">
<CForm class="row g-3 needs-validation" noValidate :validated="validatedCustom01" @submit="handleSubmitCustom01">
<CCol md="4">
<CFormLabel for="validationCustom01">Email</CFormLabel>
<CFormInput id="validationCustom01" defaultValue="Mark" required/>
<CFormFeedback valid>
Looks good!
</CFormFeedback>
</CCol>
<CCol md="4">
<CFormLabel for="validationCustom02">Email</CFormLabel>
<CFormInput id="validationCustom02" defaultValue="Otto" required/>
<CFormFeedback valid>
Looks good!
</CFormFeedback>
</CCol>
<CCol md="4">
<CFormLabel for="validationCustomUsername">Username</CFormLabel>
<CInputGroup class="has-validation">
<CInputGroupText id="inputGroupPrepend">@</CInputGroupText>
<CFormInput id="validationCustomUsername" defaultValue="" aria-describedby="inputGroupPrepend" required/>
<CFormFeedback invalid>
Please choose a username.
</CFormFeedback>
</CInputGroup>
</CCol>
<CCol md="6">
<CFormLabel for="validationCustom03">City</CFormLabel>
<CFormInput id="validationCustom03" required/>
<CFormFeedback invalid>
Please provide a valid city.
</CFormFeedback>
</CCol>
<CCol md="3">
<CFormLabel for="validationCustom04">City</CFormLabel>
<CFormSelect id="validationCustom04">
<option disabled>Choose...</option>
<option>...</option>
</CFormSelect>
<CFormFeedback invalid>
Please provide a valid city.
</CFormFeedback>
</CCol>
<CCol md="3">
<CFormLabel for="validationCustom05">City</CFormLabel>
<CFormInput id="validationCustom05" required/>
<CFormFeedback invalid>
Please provide a valid zip.
</CFormFeedback>
</CCol>
<CCol xs="12">
<CFormCheck type="checkbox" id="invalidCheck" label="Agree to terms and conditions" required/>
<CFormFeedback invalid>
You must agree before submitting.
</CFormFeedback>
</CCol>
<CCol xs="12">
<CButton color="primary" type="submit">Submit form</CButton>
</CCol>
</CForm>
</Example>
<h4 class="mt-4">Vue form validation browser defaults</h4>
<Example href="forms/validation.html#browser-defaults">
<CForm class="row g-3 needs-validation" :validated="validatedDefault01" @submit="handleSubmitDefault01">
<CCol md="4">
<CFormLabel for="validationDefault01">Email</CFormLabel>
<CFormInput id="validationDefault01" defaultValue="Mark" required/>
<CFormFeedback valid>
Looks good!
</CFormFeedback>
</CCol>
<CCol md="4">
<CFormLabel for="validationDefault02">Email</CFormLabel>
<CFormInput id="validationDefault02" defaultValue="Otto" required/>
<CFormFeedback valid>
Looks good!
</CFormFeedback>
</CCol>
<CCol md="4">
<CFormLabel for="validationDefaultUsername">Username</CFormLabel>
<CInputGroup class="has-validation">
<CInputGroupText id="inputGroupPrepend02">@</CInputGroupText>
<CFormInput id="validationDefaultUsername" defaultValue="" aria-describedby="inputGroupPrepend02" required/>
<CFormFeedback invalid>
Please choose a username.
</CFormFeedback>
</CInputGroup>
</CCol>
<CCol md="6">
<CFormLabel for="validationDefault03">City</CFormLabel>
<CFormInput id="validationDefault03" required/>
<CFormFeedback invalid>
Please provide a valid city.
</CFormFeedback>
</CCol>
<CCol md="3">
<CFormLabel for="validationDefault04">City</CFormLabel>
<CFormSelect id="validationDefault04">
<option disabled>Choose...</option>
<option>...</option>
</CFormSelect>
<CFormFeedback invalid>
Please provide a valid city.
</CFormFeedback>
</CCol>
<CCol md="3">
<CFormLabel for="validationDefault05">City</CFormLabel>
<CFormInput id="validationDefault05" required/>
<CFormFeedback invalid>
Please provide a valid zip.
</CFormFeedback>
</CCol>
<CCol xs="12">
<CFormCheck type="checkbox" id="invalidCheck" label="Agree to terms and conditions" required/>
<CFormFeedback invalid>
You must agree before submitting.
</CFormFeedback>
</CCol>
<CCol xs="12">
<CButton color="primary" type="submit">Submit form</CButton>
</CCol>
</CForm>
</Example>
<h4 class="mt-4">Validation styles for components</h4>
<Example href="forms/validation.html#supported-elements">
<CForm :validated="true">
<div class="mb-3">
<CFormLabel for="validationTextarea" class="form-label">Textarea</CFormLabel>
<CFormTextarea id="validationTextarea" placeholder="Required example textarea" invalid required></CFormTextarea>
<CFormFeedback invalid>
Please enter a message in the textarea.
</CFormFeedback>
</div>
<CFormCheck class="mb-3" id="validationFormCheck1" label="Check this checkbox" required/>
<CFormFeedback invalid>Example invalid feedback text</CFormFeedback>
<CFormCheck type="radio" name="radio-stacked" id="validationFormCheck2" label="Check this checkbox" required/>
<CFormCheck class="mb-3" type="radio" name="radio-stacked" id="validationFormCheck3" label="Or toggle this other radio" required/>
<CFormFeedback invalid>More example invalid feedback text</CFormFeedback>
<div class="mb-3">
<CFormSelect required aria-label="select example">
<option>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</CFormSelect>
<CFormFeedback invalid>Example invalid select feedback</CFormFeedback>
</div>
<div class="mb-3">
<CFormInput type="file" id="validationTextarea" aria-label="file example" required />
<CFormFeedback invalid>Example invalid form file feedback</CFormFeedback>
</div>
<div class="mb-3">
<CButton type="submit" color="primary" disabled>Submit form</CButton>
</div>
</CForm>
</Example>
</CCardBody>
</CCard>
</CCol>
</CRow>
</template>
<script>
export default {
name: "Forms",
data: () => {
return {
validatedCustom01: null,
validatedDefault01: null,
validatedTooltip01: null,
}
},
methods: {
handleSubmitCustom01(event) {
const form = event.currentTarget
if (form.checkValidity() === false) {
event.preventDefault()
event.stopPropagation()
}
this.validatedCustom01 = true
},
handleSubmitDefault01(event) {
const form = event.currentTarget
if (form.checkValidity() === false) {
event.preventDefault()
event.stopPropagation()
}
this.validatedDefault01 = true
},
}
};
</script>
+22 -22
View File
@@ -14,7 +14,7 @@
proper CSS classes. Build upon it with the options that follow, or proper CSS classes. Build upon it with the options that follow, or
with your CSS as required. with your CSS as required.
</p> </p>
<Example href="components/list-group"> <DocsExample href="components/list-group">
<CListGroup> <CListGroup>
<CListGroupItem>Cras justo odio</CListGroupItem> <CListGroupItem>Cras justo odio</CListGroupItem>
<CListGroupItem>Dapibus ac facilisis in</CListGroupItem> <CListGroupItem>Dapibus ac facilisis in</CListGroupItem>
@@ -22,7 +22,7 @@
<CListGroupItem>Porta ac consectetur ac</CListGroupItem> <CListGroupItem>Porta ac consectetur ac</CListGroupItem>
<CListGroupItem>Vestibulum at eros</CListGroupItem> <CListGroupItem>Vestibulum at eros</CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -37,7 +37,7 @@
<code>&lt;CListGroupItem&gt;</code> to show the current active <code>&lt;CListGroupItem&gt;</code> to show the current active
selection. selection.
</p> </p>
<Example href="components/list-group/#active-items"> <DocsExample href="components/list-group/#active-items">
<CListGroup> <CListGroup>
<CListGroupItem active>Cras justo odio</CListGroupItem> <CListGroupItem active>Cras justo odio</CListGroupItem>
<CListGroupItem>Dapibus ac facilisis in</CListGroupItem> <CListGroupItem>Dapibus ac facilisis in</CListGroupItem>
@@ -45,7 +45,7 @@
<CListGroupItem>Porta ac consectetur ac</CListGroupItem> <CListGroupItem>Porta ac consectetur ac</CListGroupItem>
<CListGroupItem>Vestibulum at eros</CListGroupItem> <CListGroupItem>Vestibulum at eros</CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -59,7 +59,7 @@
Add <code>disabled</code> boolean property to a Add <code>disabled</code> boolean property to a
<code>&lt;CListGroupItem&gt;</code> to make it appear disabled. <code>&lt;CListGroupItem&gt;</code> to make it appear disabled.
</p> </p>
<Example href="components/list-group/#disabled-items"> <DocsExample href="components/list-group/#disabled-items">
<CListGroup> <CListGroup>
<CListGroupItem disabled>Cras justo odio</CListGroupItem> <CListGroupItem disabled>Cras justo odio</CListGroupItem>
<CListGroupItem>Dapibus ac facilisis in</CListGroupItem> <CListGroupItem>Dapibus ac facilisis in</CListGroupItem>
@@ -67,7 +67,7 @@
<CListGroupItem>Porta ac consectetur ac</CListGroupItem> <CListGroupItem>Porta ac consectetur ac</CListGroupItem>
<CListGroupItem>Vestibulum at eros</CListGroupItem> <CListGroupItem>Vestibulum at eros</CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -87,7 +87,7 @@
<code>&lt;div&gt;</code> <code>&lt;div&gt;</code>
s) don&#39;tprovide a click or tap affordance. s) don&#39;tprovide a click or tap affordance.
</p> </p>
<Example href="components/list-group/#links-and-buttons"> <DocsExample href="components/list-group/#links-and-buttons">
<CListGroup> <CListGroup>
<CListGroupItem component="a" href="#" active> <CListGroupItem component="a" href="#" active>
Cras justo odio Cras justo odio
@@ -105,7 +105,7 @@
Vestibulum at eros Vestibulum at eros
</CListGroupItem> </CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -120,7 +120,7 @@
rounded corners to render list group items edge-to-edge in a parent rounded corners to render list group items edge-to-edge in a parent
container (e.g., cards). container (e.g., cards).
</p> </p>
<Example href="components/list-group/#flush"> <DocsExample href="components/list-group/#flush">
<CListGroup flush> <CListGroup flush>
<CListGroupItem>Cras justo odio</CListGroupItem> <CListGroupItem>Cras justo odio</CListGroupItem>
<CListGroupItem>Dapibus ac facilisis in</CListGroupItem> <CListGroupItem>Dapibus ac facilisis in</CListGroupItem>
@@ -128,7 +128,7 @@
<CListGroupItem>Porta ac consectetur ac</CListGroupItem> <CListGroupItem>Porta ac consectetur ac</CListGroupItem>
<CListGroupItem>Vestibulum at eros</CListGroupItem> <CListGroupItem>Vestibulum at eros</CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -153,7 +153,7 @@
groups.</strong groups.</strong
> >
</p> </p>
<Example href="components/list-group/#flush"> <DocsExample href="components/list-group/#flush">
<template <template
v-for="item in ['', '-sm', '-md', '-lg', '-xl', '-xxl']" v-for="item in ['', '-sm', '-md', '-lg', '-xl', '-xxl']"
:key="item" :key="item"
@@ -164,7 +164,7 @@
<CListGroupItem>Morbi leo risus</CListGroupItem> <CListGroupItem>Morbi leo risus</CListGroupItem>
</CListGroup> </CListGroup>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -178,7 +178,7 @@
Use contextual classes to style list items with a stateful Use contextual classes to style list items with a stateful
background and color. background and color.
</p> </p>
<Example href="components/list-group/#contextual-classes"> <DocsExample href="components/list-group/#contextual-classes">
<CListGroup> <CListGroup>
<CListGroupItem>Dapibus ac facilisis in</CListGroupItem> <CListGroupItem>Dapibus ac facilisis in</CListGroupItem>
<CListGroupItem <CListGroupItem
@@ -197,7 +197,7 @@
>A simple {{ item }} list group item</CListGroupItem >A simple {{ item }} list group item</CListGroupItem
> >
</CListGroup> </CListGroup>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Contextual classes also work with <code>&lt;a&gt;</code>s or Contextual classes also work with <code>&lt;a&gt;</code>s or
<code>&lt;button&gt;</code>s. Note the addition of the hover styles <code>&lt;button&gt;</code>s. Note the addition of the hover styles
@@ -205,7 +205,7 @@
<code>active</code> state; apply it to indicate an active selection <code>active</code> state; apply it to indicate an active selection
on a contextual list group item. on a contextual list group item.
</p> </p>
<Example href="components/list-group/#contextual-classes"> <DocsExample href="components/list-group/#contextual-classes">
<CListGroup> <CListGroup>
<CListGroupItem component="a" href="#" <CListGroupItem component="a" href="#"
>Dapibus ac facilisis in</CListGroupItem >Dapibus ac facilisis in</CListGroupItem
@@ -228,7 +228,7 @@
>A simple {{ item }} list group item</CListGroupItem >A simple {{ item }} list group item</CListGroupItem
> >
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -242,7 +242,7 @@
Add badges to any list group item to show unread counts, activity, Add badges to any list group item to show unread counts, activity,
and more. and more.
</p> </p>
<Example href="components/list-group/#with-badges"> <DocsExample href="components/list-group/#with-badges">
<CListGroup> <CListGroup>
<CListGroupItem <CListGroupItem
class="d-flex justify-content-between align-items-center" class="d-flex justify-content-between align-items-center"
@@ -263,7 +263,7 @@
<CBadge color="primary" shape="rounded-pill"> 1 </CBadge> <CBadge color="primary" shape="rounded-pill"> 1 </CBadge>
</CListGroupItem> </CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -280,7 +280,7 @@
>flexbox utilities</a >flexbox utilities</a
>. >.
</p> </p>
<Example href="components/list-group/#custom-content"> <DocsExample href="components/list-group/#custom-content">
<CListGroup> <CListGroup>
<CListGroupItem component="a" href="#" active> <CListGroupItem component="a" href="#" active>
<div class="d-flex w-100 justify-content-between"> <div class="d-flex w-100 justify-content-between">
@@ -320,7 +320,7 @@
> >
</CListGroupItem> </CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -334,7 +334,7 @@
Place CoreUI&#39;s checkboxes and radios within list group items and Place CoreUI&#39;s checkboxes and radios within list group items and
customize as needed. customize as needed.
</p> </p>
<Example href="components/list-group/#checkboxes-and-radios"> <DocsExample href="components/list-group/#checkboxes-and-radios">
<CListGroup> <CListGroup>
<CListGroupItem> <CListGroupItem>
<CFormCheck label="Cras justo odio" /> <CFormCheck label="Cras justo odio" />
@@ -352,7 +352,7 @@
<CFormCheck label="Vestibulum at eros" /> <CFormCheck label="Vestibulum at eros" />
</CListGroupItem> </CListGroupItem>
</CListGroup> </CListGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+38 -38
View File
@@ -8,7 +8,7 @@
<CCardBody> <CCardBody>
<h4 class="mt-4">Basic usage of navbar</h4> <h4 class="mt-4">Basic usage of navbar</h4>
<Example href="components/navbar.html#basic-usage"> <DocsExample href="components/navbar.html#basic-usage">
<CNavbar expand="lg" colorScheme="light" class="bg-light"> <CNavbar expand="lg" colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Navbar</CNavbarBrand> <CNavbarBrand href="#">Navbar</CNavbarBrand>
@@ -45,30 +45,30 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue nav brand</h4> <h4 class="mt-4">Vue nav brand</h4>
<CRow> <CRow>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#brand"> <DocsExample href="components/navbar.html#brand">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Brand as link</CNavbarBrand> <CNavbarBrand href="#">Brand as link</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#brand"> <DocsExample href="components/navbar.html#brand">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand class="mb-0 h1">Brand</CNavbarBrand> <CNavbarBrand class="mb-0 h1">Brand</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#brand"> <DocsExample href="components/navbar.html#brand">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#"> <CNavbarBrand href="#">
@@ -76,10 +76,10 @@
</CNavbarBrand> </CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#brand"> <DocsExample href="components/navbar.html#brand">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#"> <CNavbarBrand href="#">
@@ -87,12 +87,12 @@
</CNavbarBrand> </CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
</CRow> </CRow>
<h4 class="mt-4">Vue navbar with nav</h4> <h4 class="mt-4">Vue navbar with nav</h4>
<Example href="components/navbar.html#nav"> <DocsExample href="components/navbar.html#nav">
<CNavbar expand="lg" colorScheme="light" class="bg-light"> <CNavbar expand="lg" colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Navbar</CNavbarBrand> <CNavbarBrand href="#">Navbar</CNavbarBrand>
@@ -123,10 +123,10 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar with form</h4> <h4 class="mt-4">Vue navbar with form</h4>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CForm class="d-flex"> <CForm class="d-flex">
@@ -135,9 +135,9 @@
</CForm> </CForm>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar with form on right side</h4> <h4 class="mt-4">Vue navbar with form on right side</h4>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Navbar</CNavbarBrand> <CNavbarBrand href="#">Navbar</CNavbarBrand>
@@ -148,9 +148,9 @@
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar with input group</h4> <h4 class="mt-4">Vue navbar with input group</h4>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CForm class="container-fluid"> <CForm class="container-fluid">
<CInputGroup> <CInputGroup>
@@ -159,29 +159,29 @@
</CInputGroup> </CInputGroup>
</CForm> </CForm>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar with buttons</h4> <h4 class="mt-4">Vue navbar with buttons</h4>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CForm class="container-fluid justify-content-start"> <CForm class="container-fluid justify-content-start">
<CButton type="button" color="success" variant="outline" class="me-2">Main button</CButton> <CButton type="button" color="success" variant="outline" class="me-2">Main button</CButton>
<CButton type="button" color="secondary" variant="outline" size="sm">Smaller button</CButton> <CButton type="button" color="secondary" variant="outline" size="sm">Smaller button</CButton>
</CForm> </CForm>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar with text</h4> <h4 class="mt-4">Vue navbar with text</h4>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarText>Navbar text with an inline element</CNavbarText> <CNavbarText>Navbar text with an inline element</CNavbarText>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar color schemes</h4> <h4 class="mt-4">Vue navbar color schemes</h4>
<Example href="components/navbar.html#color-schemes"> <DocsExample href="components/navbar.html#color-schemes">
<CNavbar expand="lg" colorScheme="dark" class="bg-dark"> <CNavbar expand="lg" colorScheme="dark" class="bg-dark">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Navbar</CNavbarBrand> <CNavbarBrand href="#">Navbar</CNavbarBrand>
@@ -292,51 +292,51 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<h4 class="mt-4">Vue navbar placement</h4> <h4 class="mt-4">Vue navbar placement</h4>
<CRow> <CRow>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#placement"> <DocsExample href="components/navbar.html#placement">
<CNavbar colorScheme="light" class="bg-light"> <CNavbar colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Default</CNavbarBrand> <CNavbarBrand href="#">Default</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#placement"> <DocsExample href="components/navbar.html#placement">
<CNavbar colorScheme="light" class="bg-light" placement="fixed-top"> <CNavbar colorScheme="light" class="bg-light" placement="fixed-top">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Fixed top</CNavbarBrand> <CNavbarBrand href="#">Fixed top</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#placement"> <DocsExample href="components/navbar.html#placement">
<CNavbar colorScheme="light" class="bg-light" placement="fixed-bottom"> <CNavbar colorScheme="light" class="bg-light" placement="fixed-bottom">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Fixed bottom</CNavbarBrand> <CNavbarBrand href="#">Fixed bottom</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
<CCol md="6"> <CCol md="6">
<Example href="components/navbar.html#placement"> <DocsExample href="components/navbar.html#placement">
<CNavbar colorScheme="light" class="bg-light" placement="sticky-top"> <CNavbar colorScheme="light" class="bg-light" placement="sticky-top">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Sticky top</CNavbarBrand> <CNavbarBrand href="#">Sticky top</CNavbarBrand>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCol> </CCol>
</CRow> </CRow>
<h4 class="mt-4">Vue navbar responsive</h4> <h4 class="mt-4">Vue navbar responsive</h4>
<p>With no CNavbarBrand shown at the smallest breakpoint:</p> <p>With no CNavbarBrand shown at the smallest breakpoint:</p>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar expand="lg" colorScheme="light" class="bg-light"> <CNavbar expand="lg" colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarToggler aria-label="Toggle navigation" aria-expanded={visible} @click="visible = !visible"/> <CNavbarToggler aria-label="Toggle navigation" aria-expanded={visible} @click="visible = !visible"/>
@@ -364,9 +364,9 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<p>With a brand name shown on the left and toggler on the right:</p> <p>With a brand name shown on the left and toggler on the right:</p>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar expand="lg" colorScheme="light" class="bg-light"> <CNavbar expand="lg" colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarBrand href="#">Navbar</CNavbarBrand> <CNavbarBrand href="#">Navbar</CNavbarBrand>
@@ -394,10 +394,10 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
<p>With a toggler on the left and brand name on the right:</p> <p>With a toggler on the left and brand name on the right:</p>
<Example href="components/navbar.html#forms"> <DocsExample href="components/navbar.html#forms">
<CNavbar expand="lg" colorScheme="light" class="bg-light"> <CNavbar expand="lg" colorScheme="light" class="bg-light">
<CContainer fluid> <CContainer fluid>
<CNavbarToggler aria-label="Toggle navigation" aria-expanded={visible} @click="visible = !visible"/> <CNavbarToggler aria-label="Toggle navigation" aria-expanded={visible} @click="visible = !visible"/>
@@ -425,7 +425,7 @@
</CCollapse> </CCollapse>
</CContainer> </CContainer>
</CNavbar> </CNavbar>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
+24 -24
View File
@@ -15,7 +15,7 @@
overrides (for working with lists), some link padding for larger hit areas, and basic overrides (for working with lists), some link padding for larger hit areas, and basic
disabled styling. disabled styling.
</p> </p>
<Example href="components/nav#base-nav"> <DocsExample href="components/nav#base-nav">
<CNav> <CNav>
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -34,7 +34,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Classes are used throughout, so your markup can be super flexible. Use{' '} Classes are used throughout, so your markup can be super flexible. Use{' '}
<code>&lt;ul&gt;</code>s like above, <code>&lt;ol&gt;</code> if the order of your <code>&lt;ul&gt;</code>s like above, <code>&lt;ol&gt;</code> if the order of your
@@ -42,7 +42,7 @@
the .nav uses display: flex, the nav links behave the same as nav items would, but the .nav uses display: flex, the nav links behave the same as nav items would, but
without the extra markup. without the extra markup.
</p> </p>
<Example href="components/nav#base-nav"> <DocsExample href="components/nav#base-nav">
<CNav component="nav"> <CNav component="nav">
<CNavLink href="#" active> <CNavLink href="#" active>
Active Active
@@ -53,7 +53,7 @@
Disabled Disabled
</CNavLink> </CNavLink>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -74,7 +74,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Centered with <code>.justify-content-center</code>: Centered with <code>.justify-content-center</code>:
</p> </p>
<Example href="components/nav#horizontal-alignment"> <DocsExample href="components/nav#horizontal-alignment">
<CNav class="justify-content-center"> <CNav class="justify-content-center">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -93,11 +93,11 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Right-aligned with <code>.justify-content-end</code>: Right-aligned with <code>.justify-content-end</code>:
</p> </p>
<Example href="components/nav#base-nav"> <DocsExample href="components/nav#base-nav">
<CNav class="justify-content-end"> <CNav class="justify-content-end">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -116,7 +116,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -131,7 +131,7 @@
<code>.flex-column</code> utility. Need to stack them on some viewports but not <code>.flex-column</code> utility. Need to stack them on some viewports but not
others? Use the responsive versions (e.g., <code>.flex-sm-column</code>). others? Use the responsive versions (e.g., <code>.flex-sm-column</code>).
</p> </p>
<Example href="components/nav#vertical"> <DocsExample href="components/nav#vertical">
<CNav class="flex-column"> <CNav class="flex-column">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -150,7 +150,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -164,7 +164,7 @@
Takes the basic nav from above and adds the <code>variant=&#34;tabs&#34;</code> class Takes the basic nav from above and adds the <code>variant=&#34;tabs&#34;</code> class
to generate a tabbed interface to generate a tabbed interface
</p> </p>
<Example href="components/nav#tabs"> <DocsExample href="components/nav#tabs">
<CNav variant="tabs"> <CNav variant="tabs">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -183,7 +183,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -196,7 +196,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Take that same HTML, but use <code>variant=&#34;pills&#34;</code> instead: Take that same HTML, but use <code>variant=&#34;pills&#34;</code> instead:
</p> </p>
<Example href="components/nav#pills"> <DocsExample href="components/nav#pills">
<CNav variant="pills"> <CNav variant="pills">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -215,7 +215,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -231,7 +231,7 @@
<code>.nav-item</code>s, use <code>layout=&#34;fill&#34;</code>. Notice that all <code>.nav-item</code>s, use <code>layout=&#34;fill&#34;</code>. Notice that all
horizontal space is occupied, but not every nav item has the same width. horizontal space is occupied, but not every nav item has the same width.
</p> </p>
<Example href="components/nav#fill-and-justify"> <DocsExample href="components/nav#fill-and-justify">
<CNav variant="pills" layout="fill"> <CNav variant="pills" layout="fill">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -250,13 +250,13 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
For equal-width elements, use <code>layout=&#34;justified&#34;</code>. All horizontal For equal-width elements, use <code>layout=&#34;justified&#34;</code>. All horizontal
space will be occupied by nav links, but unlike the .nav-fill above, every nav item space will be occupied by nav links, but unlike the .nav-fill above, every nav item
will be the same width. will be the same width.
</p> </p>
<Example href="components/nav#fill-and-justify"> <DocsExample href="components/nav#fill-and-justify">
<CNav variant="pills" layout="justified"> <CNav variant="pills" layout="justified">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -275,7 +275,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -292,7 +292,7 @@
the example below, our nav will be stacked on the lowest breakpoint, then adapt to a the example below, our nav will be stacked on the lowest breakpoint, then adapt to a
horizontal layout that fills the available width starting from the small breakpoint. horizontal layout that fills the available width starting from the small breakpoint.
</p> </p>
<Example href="components/nav#working-with-flex-utilities"> <DocsExample href="components/nav#working-with-flex-utilities">
<CNav component="nav" variant="pills" class="flex-column flex-sm-row"> <CNav component="nav" variant="pills" class="flex-column flex-sm-row">
<CNavLink href="#" active> <CNavLink href="#" active>
Active Active
@@ -303,7 +303,7 @@
Disabled Disabled
</CNavLink> </CNavLink>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -313,7 +313,7 @@
<strong>Vue Navs</strong> <small>Tabs with dropdowns</small> <strong>Vue Navs</strong> <small>Tabs with dropdowns</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/nav#tabs-with-dropdowns"> <DocsExample href="components/nav#tabs-with-dropdowns">
<CNav> <CNav>
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -337,7 +337,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -347,7 +347,7 @@
<strong>Vue Navs</strong> <small>Pills with dropdowns</small> <strong>Vue Navs</strong> <small>Pills with dropdowns</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/nav#pills-with-dropdowns"> <DocsExample href="components/nav#pills-with-dropdowns">
<CNav variant="pills"> <CNav variant="pills">
<CNavItem> <CNavItem>
<CNavLink href="#" active> <CNavLink href="#" active>
@@ -371,7 +371,7 @@
</CNavLink> </CNavLink>
</CNavItem> </CNavItem>
</CNav> </CNav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+7 -4
View File
@@ -1,12 +1,15 @@
<template> <template>
<CRow> <CRow>
<CCol :xs="12">
<DocsCallout name="Popover" href="components/breadcrumb" />
</CCol>
<CCol :xs="12"> <CCol :xs="12">
<CCard class="mb-4"> <CCard class="mb-4">
<CCardHeader> <CCardHeader>
<strong>Vue Popovers</strong> <small>Basic example</small> <strong>Vue Popovers</strong> <small>Basic example</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="directives/popover.html#example"> <DocsExample href="directives/popover.html#example">
<CButton <CButton
color="danger" color="danger"
size="lg" size="lg"
@@ -19,7 +22,7 @@
> >
Click to toggle popover Click to toggle popover
</CButton> </CButton>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -33,7 +36,7 @@
Four options are available: top, right, bottom, and left aligned. Four options are available: top, right, bottom, and left aligned.
Directions are mirrored when using CoreUI for Vue in RTL. Directions are mirrored when using CoreUI for Vue in RTL.
</p> </p>
<Example href="directives/popover.html#four-directions"> <DocsExample href="directives/popover.html#four-directions">
<CButton <CButton
color="secondary" color="secondary"
v-c-popover="{ v-c-popover="{
@@ -70,7 +73,7 @@
}" }"
>Popover on left</CButton >Popover on left</CButton
> >
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+14 -14
View File
@@ -20,7 +20,7 @@
, ensuring you can stack progress bars, animate them, and place text , ensuring you can stack progress bars, animate them, and place text
labels over them. labels over them.
</p> </p>
<Example href="components/progress"> <DocsExample href="components/progress">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar :value="0" /> <CProgressBar :value="0" />
</CProgress> </CProgress>
@@ -36,7 +36,7 @@
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar :value="100" /> <CProgressBar :value="100" />
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -50,11 +50,11 @@
Add labels to your progress bars by placing text within the Add labels to your progress bars by placing text within the
<code>&lt;CProgressBar&gt;</code>. <code>&lt;CProgressBar&gt;</code>.
</p> </p>
<Example href="components/progress#labels"> <DocsExample href="components/progress#labels">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar :value="25">25%</CProgressBar> <CProgressBar :value="25">25%</CProgressBar>
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -70,14 +70,14 @@
inner <code>&lt;CProgressBar&gt;</code> will automatically resize inner <code>&lt;CProgressBar&gt;</code> will automatically resize
accordingly. accordingly.
</p> </p>
<Example href="components/progress#height"> <DocsExample href="components/progress#height">
<CProgress :height="1" class="mb-3"> <CProgress :height="1" class="mb-3">
<CProgressBar :value="25"></CProgressBar> <CProgressBar :value="25"></CProgressBar>
</CProgress> </CProgress>
<CProgress :height="20" class="mb-3"> <CProgress :height="20" class="mb-3">
<CProgressBar :value="25"></CProgressBar> <CProgressBar :value="25"></CProgressBar>
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -91,7 +91,7 @@
Use <code>color</code> prop to change the appearance of individual Use <code>color</code> prop to change the appearance of individual
progress bars. progress bars.
</p> </p>
<Example href="components/progress#backgrounds"> <DocsExample href="components/progress#backgrounds">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar color="success" :value="25" /> <CProgressBar color="success" :value="25" />
</CProgress> </CProgress>
@@ -104,7 +104,7 @@
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar color="danger" :value="100" /> <CProgressBar color="danger" :value="100" />
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -117,13 +117,13 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Include multiple progress bars in a progress component if you need. Include multiple progress bars in a progress component if you need.
</p> </p>
<Example href="components/progress#multiple-bars"> <DocsExample href="components/progress#multiple-bars">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar :value="15" /> <CProgressBar :value="15" />
<CProgressBar color="success" :value="30" /> <CProgressBar color="success" :value="30" />
<CProgressBar color="info" :value="20" /> <CProgressBar color="info" :value="20" />
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -138,7 +138,7 @@
<code>&lt;CProgressBar&gt;</code> to apply a stripe via CSS gradient <code>&lt;CProgressBar&gt;</code> to apply a stripe via CSS gradient
over the progress bar&#39;s background color. over the progress bar&#39;s background color.
</p> </p>
<Example href="components/progress#striped"> <DocsExample href="components/progress#striped">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar color="success" variant="striped" :value="25" /> <CProgressBar color="success" variant="striped" :value="25" />
</CProgress> </CProgress>
@@ -151,7 +151,7 @@
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar color="danger" variant="striped" :value="100" /> <CProgressBar color="danger" variant="striped" :value="100" />
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -167,7 +167,7 @@
<code>&lt;CProgressBar&gt;</code> to animate the stripes right to <code>&lt;CProgressBar&gt;</code> to animate the stripes right to
left via CSS3 animations. left via CSS3 animations.
</p> </p>
<Example href="components/progress#animated-stripes"> <DocsExample href="components/progress#animated-stripes">
<CProgress class="mb-3"> <CProgress class="mb-3">
<CProgressBar <CProgressBar
color="success" color="success"
@@ -200,7 +200,7 @@
:value="100" :value="100"
/> />
</CProgress> </CProgress>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+14 -14
View File
@@ -12,15 +12,15 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Use the border spinners for a lightweight loading indicator. Use the border spinners for a lightweight loading indicator.
</p> </p>
<Example href="components/spinner"> <DocsExample href="components/spinner">
<CSpinner /> <CSpinner />
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
The border spinner uses <code>currentColor</code> for its The border spinner uses <code>currentColor</code> for its
<code>border-color</code>. You can use any of our text color <code>border-color</code>. You can use any of our text color
utilities on the standard spinner. utilities on the standard spinner.
</p> </p>
<Example href="components/spinner#colors"> <DocsExample href="components/spinner#colors">
<CSpinner color="primary" /> <CSpinner color="primary" />
<CSpinner color="secondary" /> <CSpinner color="secondary" />
<CSpinner color="success" /> <CSpinner color="success" />
@@ -29,7 +29,7 @@
<CSpinner color="info" /> <CSpinner color="info" />
<CSpinner color="light" /> <CSpinner color="light" />
<CSpinner color="dark" /> <CSpinner color="dark" />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -43,15 +43,15 @@
If you don&#39;tfancy a border spinner, switch to the grow spinner. If you don&#39;tfancy a border spinner, switch to the grow spinner.
While it doesn&#39;t technically spin, it does repeatedly grow! While it doesn&#39;t technically spin, it does repeatedly grow!
</p> </p>
<Example href="components/spinner#growing-spinner"> <DocsExample href="components/spinner#growing-spinner">
<CSpinner variant="grow" /> <CSpinner variant="grow" />
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Once again, this spinner is built with <code>currentColor</code>, so Once again, this spinner is built with <code>currentColor</code>, so
you can easily change its appearance. Here it is in blue, along with you can easily change its appearance. Here it is in blue, along with
the supported variants. the supported variants.
</p> </p>
<Example href="components/spinner#growing-spinner"> <DocsExample href="components/spinner#growing-spinner">
<CSpinner color="primary" variant="grow" /> <CSpinner color="primary" variant="grow" />
<CSpinner color="secondary" variant="grow" /> <CSpinner color="secondary" variant="grow" />
<CSpinner color="success" variant="grow" /> <CSpinner color="success" variant="grow" />
@@ -60,7 +60,7 @@
<CSpinner color="info" variant="grow" /> <CSpinner color="info" variant="grow" />
<CSpinner color="light" variant="grow" /> <CSpinner color="light" variant="grow" />
<CSpinner color="dark" variant="grow" /> <CSpinner color="dark" variant="grow" />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -74,10 +74,10 @@
Add <code>size=&#34;sm&#34;</code> property to make a smaller Add <code>size=&#34;sm&#34;</code> property to make a smaller
spinner that can quickly be used within other components. spinner that can quickly be used within other components.
</p> </p>
<Example href="components/spinner#size"> <DocsExample href="components/spinner#size">
<CSpinner size="sm" /> <CSpinner size="sm" />
<CSpinner size="sm" variant="grow" /> <CSpinner size="sm" variant="grow" />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -92,7 +92,7 @@
processing or taking place. You may also swap the text out of the processing or taking place. You may also swap the text out of the
spinner element and utilize button text as needed. spinner element and utilize button text as needed.
</p> </p>
<Example href="components/spinner#buttons"> <DocsExample href="components/spinner#buttons">
<CButton disabled> <CButton disabled>
<CSpinner component="span" size="sm" aria-hidden="true" /> <CSpinner component="span" size="sm" aria-hidden="true" />
</CButton> </CButton>
@@ -100,8 +100,8 @@
<CSpinner component="span" size="sm" aria-hidden="true" /> <CSpinner component="span" size="sm" aria-hidden="true" />
Loading... Loading...
</CButton> </CButton>
</Example> </DocsExample>
<Example href="components/spinner#buttons"> <DocsExample href="components/spinner#buttons">
<CButton disabled> <CButton disabled>
<CSpinner <CSpinner
component="span" component="span"
@@ -119,7 +119,7 @@
/> />
Loading... Loading...
</CButton> </CButton>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+2 -2
View File
@@ -6,7 +6,7 @@
<strong>Vue Switches</strong> <strong>Vue Switches</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/checks-radios.html#switches"> <DocsExample href="forms/checks-radios.html#switches">
<CRow> <CRow>
<CCol md="4"> <CCol md="4">
<CFormSwitch label="Default switch checkbox input" /> <CFormSwitch label="Default switch checkbox input" />
@@ -27,7 +27,7 @@
<CFormSwitch label="Extra-large switch" defaultChecked disabled size="xl"/> <CFormSwitch label="Extra-large switch" defaultChecked disabled size="xl"/>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+44 -44
View File
@@ -13,7 +13,7 @@
Using the most basic table CoreUI, here&#39;s how Using the most basic table CoreUI, here&#39;s how
<code>&lt;CTable&gt;</code>-based tables look in CoreUI. <code>&lt;CTable&gt;</code>-based tables look in CoreUI.
</p> </p>
<Example href="components/table"> <DocsExample href="components/table">
<CTable> <CTable>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -43,7 +43,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -57,7 +57,7 @@
Use contextual classes to color tables, table rows or individual Use contextual classes to color tables, table rows or individual
cells. cells.
</p> </p>
<Example href="components/table#variants"> <DocsExample href="components/table#variants">
<CTable> <CTable>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -114,7 +114,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -128,7 +128,7 @@
Use <code>striped</code> property to add zebra-striping to any table Use <code>striped</code> property to add zebra-striping to any table
row within the <code>&lt;CTableBody&gt;</code>. row within the <code>&lt;CTableBody&gt;</code>.
</p> </p>
<Example href="components/table#striped-rows"> <DocsExample href="components/table#striped-rows">
<CTable striped> <CTable striped>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -158,11 +158,11 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
These classes can also be added to table variants: These classes can also be added to table variants:
</p> </p>
<Example href="components/table#striped-rows"> <DocsExample href="components/table#striped-rows">
<CTable color="dark" striped> <CTable color="dark" striped>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -192,8 +192,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#striped-rows"> <DocsExample href="components/table#striped-rows">
<CTable color="success" striped> <CTable color="success" striped>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -223,7 +223,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -237,7 +237,7 @@
Use <code>hover</code> property to enable a hover state on table Use <code>hover</code> property to enable a hover state on table
rows within a <code>&lt;CTableBody&gt;</code>. rows within a <code>&lt;CTableBody&gt;</code>.
</p> </p>
<Example href="components/table#hoverable-rows"> <DocsExample href="components/table#hoverable-rows">
<CTable hover> <CTable hover>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -267,8 +267,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#hoverable-rows"> <DocsExample href="components/table#hoverable-rows">
<CTable color="dark" hover> <CTable color="dark" hover>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -298,8 +298,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#hoverable-rows"> <DocsExample href="components/table#hoverable-rows">
<CTable striped hover> <CTable striped hover>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -329,7 +329,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -339,7 +339,7 @@
<strong>Vue Table</strong> <small>Active tables</small> <strong>Vue Table</strong> <small>Active tables</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/table#active-tables"> <DocsExample href="components/table#active-tables">
<CTable> <CTable>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -371,8 +371,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#active-tables"> <DocsExample href="components/table#active-tables">
<CTable color="dark"> <CTable color="dark">
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -404,7 +404,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -418,7 +418,7 @@
Add <code>bordered</code> property for borders on all sides of the Add <code>bordered</code> property for borders on all sides of the
table and cells. table and cells.
</p> </p>
<Example href="components/table#bordered-tables"> <DocsExample href="components/table#bordered-tables">
<CTable bordered> <CTable bordered>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -448,13 +448,13 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
<a href="https://coreui.io/docs/4.0/utilities/borders#border-color"> <a href="https://coreui.io/docs/4.0/utilities/borders#border-color">
Border color utilities </a Border color utilities </a
> can be added to change colors: > can be added to change colors:
</p> </p>
<Example href="components/table#bordered-tables"> <DocsExample href="components/table#bordered-tables">
<CTable bordered borderColor="primary"> <CTable bordered borderColor="primary">
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -484,7 +484,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -497,7 +497,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Add <code>borderless</code> property for a table without borders. Add <code>borderless</code> property for a table without borders.
</p> </p>
<Example href="components/table#tables-without-borders"> <DocsExample href="components/table#tables-without-borders">
<CTable borderless> <CTable borderless>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -527,8 +527,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#tables-without-borders"> <DocsExample href="components/table#tables-without-borders">
<CTable color="dark" borderless> <CTable color="dark" borderless>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -558,7 +558,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -573,7 +573,7 @@
<code>&lt;CTable&gt;</code> more compact by cutting all cell <code>&lt;CTable&gt;</code> more compact by cutting all cell
<code>padding</code> in half. <code>padding</code> in half.
</p> </p>
<Example href="components/table#small-tables"> <DocsExample href="components/table#small-tables">
<CTable small> <CTable small>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -603,7 +603,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -620,7 +620,7 @@
<code>&lt;CTable&gt;</code> and are aligned to the the top by <code>&lt;CTable&gt;</code> and are aligned to the the top by
default. Use the align property to re-align where needed. default. Use the align property to re-align where needed.
</p> </p>
<Example href="components/table#vertical-alignment"> <DocsExample href="components/table#vertical-alignment">
<CTable align="middle" responsive> <CTable align="middle" responsive>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -697,7 +697,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -711,7 +711,7 @@
Border styles, active styles, and table variants are not inherited Border styles, active styles, and table variants are not inherited
by nested tables. by nested tables.
</p> </p>
<Example href="components/table#nesting"> <DocsExample href="components/table#nesting">
<CTable striped> <CTable striped>
<CTableHead> <CTableHead>
<CTableRow> <CTableRow>
@@ -771,7 +771,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -787,7 +787,7 @@
<code>color=&#34;dark&#34;</code> to make <code>color=&#34;dark&#34;</code> to make
<code>&lt;CTableHead&gt;</code>s appear light or dark gray. <code>&lt;CTableHead&gt;</code>s appear light or dark gray.
</p> </p>
<Example href="components/table#table-head"> <DocsExample href="components/table#table-head">
<CTable> <CTable>
<CTableHead color="light"> <CTableHead color="light">
<CTableRow> <CTableRow>
@@ -818,8 +818,8 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<Example href="components/table#table-head"> <DocsExample href="components/table#table-head">
<CTable> <CTable>
<CTableHead color="dark"> <CTableHead color="dark">
<CTableRow> <CTableRow>
@@ -849,7 +849,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -859,7 +859,7 @@
<strong>Vue Table</strong> <small>Table foot</small> <strong>Vue Table</strong> <small>Table foot</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/table#table-foot"> <DocsExample href="components/table#table-foot">
<CTable> <CTable>
<CTableHead color="light"> <CTableHead color="light">
<CTableRow> <CTableRow>
@@ -897,7 +897,7 @@
</CTableRow> </CTableRow>
</CTableHead> </CTableHead>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -912,7 +912,7 @@
table. It helps users with screen readers to find a table and table. It helps users with screen readers to find a table and
understand what it&#39;s about and decide if they want to read it. understand what it&#39;s about and decide if they want to read it.
</p> </p>
<Example href="components/table#captions"> <DocsExample href="components/table#captions">
<CTable> <CTable>
<CTableCaption>List of users</CTableCaption> <CTableCaption>List of users</CTableCaption>
<CTableHead> <CTableHead>
@@ -944,12 +944,12 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
You can also put the <code>&lt;CTableCaption&gt;</code> on the top You can also put the <code>&lt;CTableCaption&gt;</code> on the top
of the table with <code>caption=&#34;top&#34;</code>. of the table with <code>caption=&#34;top&#34;</code>.
</p> </p>
<Example href="components/table#captions"> <DocsExample href="components/table#captions">
<CTable caption="top"> <CTable caption="top">
<CTableCaption>List of users</CTableCaption> <CTableCaption>List of users</CTableCaption>
<CTableHead> <CTableHead>
@@ -981,7 +981,7 @@
</CTableRow> </CTableRow>
</CTableBody> </CTableBody>
</CTable> </CTable>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+2 -2
View File
@@ -6,7 +6,7 @@
<strong>Vue Tabs</strong> <strong>Vue Tabs</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/tabs.html"> <DocsExample href="components/tabs.html">
<CNav variant="tabs"> <CNav variant="tabs">
<CNavItem> <CNavItem>
<CNavLink href="#" @click="activeTabA=1"> <CNavLink href="#" @click="activeTabA=1">
@@ -53,7 +53,7 @@
craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr. craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
</CTabPane> </CTabPane>
</CTabContent> </CTabContent>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+7 -4
View File
@@ -1,5 +1,8 @@
<template> <template>
<CRow> <CRow>
<CCol :xs="12">
<DocsCallout name="Tooltip" href="components/breadcrumb" />
</CCol>
<CCol :xs="12"> <CCol :xs="12">
<CCard> <CCard>
<CCardHeader> <CCardHeader>
@@ -9,7 +12,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Hover over the links below to see tooltips: Hover over the links below to see tooltips:
</p> </p>
<Example href="directives/tooltip.html"> <DocsExample href="directives/tooltip.html">
<p class="text-medium-emphasis"> <p class="text-medium-emphasis">
Tight pants next level keffiyeh Tight pants next level keffiyeh
<CLink v-c-tooltip="'Tooltip text'"> you probably </CLink> <CLink v-c-tooltip="'Tooltip text'"> you probably </CLink>
@@ -25,11 +28,11 @@
<CLink v-c-tooltip="'Tooltip text'"> twitter handle </CLink> <CLink v-c-tooltip="'Tooltip text'"> twitter handle </CLink>
freegan cred raw denim single-origin coffee viral. freegan cred raw denim single-origin coffee viral.
</p> </p>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Hover over the links below to see tooltips: Hover over the links below to see tooltips:
</p> </p>
<Example href="directives/tooltip.html"> <DocsExample href="directives/tooltip.html">
<CButton <CButton
color="secondary" color="secondary"
v-c-tooltip="{ v-c-tooltip="{
@@ -66,7 +69,7 @@
}" }"
>Tooltip on left</CButton >Tooltip on left</CButton
> >
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+26 -26
View File
@@ -13,25 +13,25 @@
Wrap a series of <code>&lt;CButton&gt;</code> components in Wrap a series of <code>&lt;CButton&gt;</code> components in
<code>&lt;CButtonGroup&gt;</code>. <code>&lt;CButtonGroup&gt;</code>.
</p> </p>
<Example href="components/button-group"> <DocsExample href="components/button-group">
<CButtonGroup role="group" aria-label="Basic example"> <CButtonGroup role="group" aria-label="Basic example">
<CButton color="primary">Left</CButton> <CButton color="primary">Left</CButton>
<CButton color="primary">Middle</CButton> <CButton color="primary">Middle</CButton>
<CButton color="primary">Right</CButton> <CButton color="primary">Right</CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
<p> <p>
These classes can also be added to groups of links, as an These classes can also be added to groups of links, as an
alternative to the alternative to the
<code>&lt;CNav&gt;</code> components. <code>&lt;CNav&gt;</code> components.
</p> </p>
<Example href="components/button-group"> <DocsExample href="components/button-group">
<CButtonGroup> <CButtonGroup>
<CButton href="#" color="primary" active> Active link </CButton> <CButton href="#" color="primary" active> Active link </CButton>
<CButton href="#" color="primary"> Link </CButton> <CButton href="#" color="primary"> Link </CButton>
<CButton href="#" color="primary"> Link </CButton> <CButton href="#" color="primary"> Link </CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -41,13 +41,13 @@
<strong>Vue Button Group</strong> <span>Mixed styles</span> <strong>Vue Button Group</strong> <span>Mixed styles</span>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/button-group#mixed-styles"> <DocsExample href="components/button-group#mixed-styles">
<CButtonGroup role="group" aria-label="Basic mixed styles example"> <CButtonGroup role="group" aria-label="Basic mixed styles example">
<CButton color="danger">Left</CButton> <CButton color="danger">Left</CButton>
<CButton color="warning">Middle</CButton> <CButton color="warning">Middle</CButton>
<CButton color="success">Right</CButton> <CButton color="success">Right</CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -57,13 +57,13 @@
<strong>Vue Button Group</strong> <span>Outlined styles</span> <strong>Vue Button Group</strong> <span>Outlined styles</span>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/button-group#outlined-styles"> <DocsExample href="components/button-group#outlined-styles">
<CButtonGroup role="group" aria-label="Basic outlined example"> <CButtonGroup role="group" aria-label="Basic outlined example">
<CButton color="primary" variant="outline"> Left </CButton> <CButton color="primary" variant="outline"> Left </CButton>
<CButton color="primary" variant="outline"> Middle </CButton> <CButton color="primary" variant="outline"> Middle </CButton>
<CButton color="primary" variant="outline"> Right </CButton> <CButton color="primary" variant="outline"> Right </CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -77,7 +77,7 @@
Combine button-like checkbox and radio toggle buttons into a Combine button-like checkbox and radio toggle buttons into a
seamless looking button group. seamless looking button group.
</p> </p>
<Example <DocsExample
href="components/button-group#checkbox-and-radio-button-groups" href="components/button-group#checkbox-and-radio-button-groups"
> >
<CButtonGroup <CButtonGroup
@@ -91,8 +91,8 @@
<CFormCheck :button="{ color: 'primary', variant: 'outline' }" <CFormCheck :button="{ color: 'primary', variant: 'outline' }"
id="btncheck3" autoComplete="off" label="Checkbox 3" /> id="btncheck3" autoComplete="off" label="Checkbox 3" />
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
<Example <DocsExample
href="components/button-group#checkbox-and-radio-button-groups" href="components/button-group#checkbox-and-radio-button-groups"
> >
<CButtonGroup <CButtonGroup
@@ -107,7 +107,7 @@
name="btnradio" id="btnradio3" autoComplete="off" label="Radio 3" name="btnradio" id="btnradio3" autoComplete="off" label="Radio 3"
/> />
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -122,7 +122,7 @@
components. Use utility classes as needed to space out groups, components. Use utility classes as needed to space out groups,
buttons, and more. buttons, and more.
</p> </p>
<Example href="components/button-group#button-toolbar"> <DocsExample href="components/button-group#button-toolbar">
<CButtonToolbar <CButtonToolbar
role="group" role="group"
aria-label="Toolbar with button groups" aria-label="Toolbar with button groups"
@@ -154,13 +154,13 @@
<CButton color="info">8</CButton> <CButton color="info">8</CButton>
</CButtonGroup> </CButtonGroup>
</CButtonToolbar> </CButtonToolbar>
</Example> </DocsExample>
<p> <p>
Feel free to combine input groups with button groups in your Feel free to combine input groups with button groups in your
toolbars. Similar to the example above, youll likely need some toolbars. Similar to the example above, youll likely need some
utilities through to space items correctly. utilities through to space items correctly.
</p> </p>
<Example href="components/button-group#button-toolbar"> <DocsExample href="components/button-group#button-toolbar">
<CButtonToolbar <CButtonToolbar
class="mb-3" class="mb-3"
role="group" role="group"
@@ -209,7 +209,7 @@
/> />
</CInputGroup> </CInputGroup>
</CButtonToolbar> </CButtonToolbar>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -226,7 +226,7 @@
<code>&lt;CButtonGroup&gt;</code>&#39;s, including each one when <code>&lt;CButtonGroup&gt;</code>&#39;s, including each one when
nesting multiple groups. nesting multiple groups.
</p> </p>
<Example href="components/button-group#sizing"> <DocsExample href="components/button-group#sizing">
<CButtonGroup <CButtonGroup
size="lg" size="lg"
role="group" role="group"
@@ -252,7 +252,7 @@
<CButton color="dark" variant="outline"> Middle </CButton> <CButton color="dark" variant="outline"> Middle </CButton>
<CButton color="dark" variant="outline"> Right </CButton> <CButton color="dark" variant="outline"> Right </CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -267,7 +267,7 @@
<code>&lt;CButtonGroup&gt;</code> when you need dropdown menus <code>&lt;CButtonGroup&gt;</code> when you need dropdown menus
combined with a series of buttons. combined with a series of buttons.
</p> </p>
<Example href="components/button-group#nesting"> <DocsExample href="components/button-group#nesting">
<CButtonGroup <CButtonGroup
role="group" role="group"
aria-label="Button group with nested dropdown" aria-label="Button group with nested dropdown"
@@ -285,7 +285,7 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -300,7 +300,7 @@
horizontally. horizontally.
<strong>Split button dropdowns are not supported here.</strong> <strong>Split button dropdowns are not supported here.</strong>
</p> </p>
<Example href="components/button-group/#vertical-variation"> <DocsExample href="components/button-group/#vertical-variation">
<CButtonGroup <CButtonGroup
vertical vertical
role="group" role="group"
@@ -314,8 +314,8 @@
<CButton color="dark">Button</CButton> <CButton color="dark">Button</CButton>
<CButton color="dark">Button</CButton> <CButton color="dark">Button</CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
<Example href="components/button-group/#vertical-variation"> <DocsExample href="components/button-group/#vertical-variation">
<CButtonGroup <CButtonGroup
vertical vertical
role="group" role="group"
@@ -366,8 +366,8 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
<Example href="components/button-group/#vertical-variation"> <DocsExample href="components/button-group/#vertical-variation">
<CButtonGroup <CButtonGroup
vertical vertical
role="group" role="group"
@@ -381,7 +381,7 @@
name="vbtnradio" id="vbtnradio3" autoComplete="off" label="Radio name="vbtnradio" id="vbtnradio3" autoComplete="off" label="Radio
3" /> 3" />
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+30 -30
View File
@@ -16,7 +16,7 @@
to initialize operations, both in the background or foreground of an to initialize operations, both in the background or foreground of an
experience. experience.
</p> </p>
<Example href="components/buttons"> <DocsExample href="components/buttons">
<template <template
v-for="state in ['normal', 'active', 'disabled']" v-for="state in ['normal', 'active', 'disabled']"
:key="state" :key="state"
@@ -50,7 +50,7 @@
</CCol> </CCol>
</CRow> </CRow>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -64,7 +64,7 @@
You can combine button with our You can combine button with our
<a href="https://icons.coreui.io/">CoreUI Icons</a>. <a href="https://icons.coreui.io/">CoreUI Icons</a>.
</p> </p>
<Example href="components/buttons"> <DocsExample href="components/buttons">
<template <template
v-for="state in ['normal', 'active', 'disabled']" v-for="state in ['normal', 'active', 'disabled']"
:key="state" :key="state"
@@ -100,7 +100,7 @@
</CCol> </CCol>
</CRow> </CRow>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -124,7 +124,7 @@
<code>role=&#34;button&#34;</code> to adequately communicate their <code>role=&#34;button&#34;</code> to adequately communicate their
meaning to assistive technologies such as screen readers. meaning to assistive technologies such as screen readers.
</p> </p>
<Example href="components/buttons#button-components"> <DocsExample href="components/buttons#button-components">
<CButton component="a" color="primary" href="#" role="button"> <CButton component="a" color="primary" href="#" role="button">
Link Link
</CButton> </CButton>
@@ -147,7 +147,7 @@
color="primary" color="primary"
value="Reset" value="Reset"
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -162,7 +162,7 @@
<code>variant=&#34;outline&#34;</code> prop to remove all background <code>variant=&#34;outline&#34;</code> prop to remove all background
colors. colors.
</p> </p>
<Example href="components/buttons#outline-buttons"> <DocsExample href="components/buttons#outline-buttons">
<template <template
v-for="state in ['normal', 'active', 'disabled']" v-for="state in ['normal', 'active', 'disabled']"
:key="state" :key="state"
@@ -198,7 +198,7 @@
</CCol> </CCol>
</CRow> </CRow>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -213,7 +213,7 @@
<code>variant=&#34;ghost&#34;</code> prop to remove all background <code>variant=&#34;ghost&#34;</code> prop to remove all background
colors. colors.
</p> </p>
<Example href="components/buttons#ghost-buttons"> <DocsExample href="components/buttons#ghost-buttons">
<template <template
v-for="state in ['normal', 'active', 'disabled']" v-for="state in ['normal', 'active', 'disabled']"
:key="state" :key="state"
@@ -249,7 +249,7 @@
</CCol> </CCol>
</CRow> </CRow>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -263,14 +263,14 @@
Larger or smaller buttons? Add <code>size=&#34;lg&#34;</code> or Larger or smaller buttons? Add <code>size=&#34;lg&#34;</code> or
<code>size=&#34;sm&#34;</code> for additional sizes. <code>size=&#34;sm&#34;</code> for additional sizes.
</p> </p>
<Example href="components/buttons#sizes"> <DocsExample href="components/buttons#sizes">
<CButton color="primary" size="lg"> Large button </CButton> <CButton color="primary" size="lg"> Large button </CButton>
<CButton color="secondary" size="lg"> Large button </CButton> <CButton color="secondary" size="lg"> Large button </CButton>
</Example> </DocsExample>
<Example href="components/buttons#sizes"> <DocsExample href="components/buttons#sizes">
<CButton color="primary" size="sm"> Small button </CButton> <CButton color="primary" size="sm"> Small button </CButton>
<CButton color="secondary" size="sm"> Small button </CButton> <CButton color="secondary" size="sm"> Small button </CButton>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -280,7 +280,7 @@
<strong>Vue Button</strong> <small>Pill</small> <strong>Vue Button</strong> <small>Pill</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/buttons#pill-buttons"> <DocsExample href="components/buttons#pill-buttons">
<template <template
v-for="color in [ v-for="color in [
'primary', 'primary',
@@ -303,7 +303,7 @@
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
</CButton> </CButton>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -313,7 +313,7 @@
<strong>Vue Button</strong> <small>Square</small> <strong>Vue Button</strong> <small>Square</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="components/buttons#square"> <DocsExample href="components/buttons#square">
<template <template
v-for="color in [ v-for="color in [
'primary', 'primary',
@@ -336,7 +336,7 @@
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
</CButton> </CButton>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -353,12 +353,12 @@
<code>pointer-events: none</code> applied to, disabling hover and <code>pointer-events: none</code> applied to, disabling hover and
active states from triggering. active states from triggering.
</p> </p>
<Example href="components/buttons#disabled-state"> <DocsExample href="components/buttons#disabled-state">
<CButton color="primary" size="lg" disabled> <CButton color="primary" size="lg" disabled>
Primary button Primary button
</CButton> </CButton>
<CButton color="secondary" size="lg" disabled> Button </CButton> <CButton color="secondary" size="lg" disabled> Button </CButton>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Disabled buttons using the <code>&lt;a&gt;</code> component act a Disabled buttons using the <code>&lt;a&gt;</code> component act a
little different: little different:
@@ -371,7 +371,7 @@
<code>aria-disabled=&#34;true&#34;</code> attribute to show the <code>aria-disabled=&#34;true&#34;</code> attribute to show the
state of the component to assistive technologies. state of the component to assistive technologies.
</p> </p>
<Example href="components/buttons#disabled-state"> <DocsExample href="components/buttons#disabled-state">
<CButton component="a" href="#" color="primary" size="lg" disabled> <CButton component="a" href="#" color="primary" size="lg" disabled>
Primary link Primary link
</CButton> </CButton>
@@ -384,7 +384,7 @@
> >
Link Link
</CButton> </CButton>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -398,12 +398,12 @@
Create buttons that span the full width of a parent—by using Create buttons that span the full width of a parent—by using
utilities. utilities.
</p> </p>
<Example href="components/buttons#block-buttons"> <DocsExample href="components/buttons#block-buttons">
<div class="d-grid gap-2"> <div class="d-grid gap-2">
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
</div> </div>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Here we create a responsive variation, starting with vertically Here we create a responsive variation, starting with vertically
stacked buttons until the <code>md</code> breakpoint, where stacked buttons until the <code>md</code> breakpoint, where
@@ -411,24 +411,24 @@
thus nullifying the <code>gap-2</code> utility. Resize your browser thus nullifying the <code>gap-2</code> utility. Resize your browser
to see them change. to see them change.
</p> </p>
<Example href="components/buttons#block-buttons"> <DocsExample href="components/buttons#block-buttons">
<div class="d-grid gap-2 d-md-block"> <div class="d-grid gap-2 d-md-block">
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
</div> </div>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
You can adjust the width of your block buttons with grid column You can adjust the width of your block buttons with grid column
width classes. For example, for a half-width &#34;block button&#34;, width classes. For example, for a half-width &#34;block button&#34;,
use <code>.col-6</code>. Center it horizontally with use <code>.col-6</code>. Center it horizontally with
<code>.mx-auto</code>, too. <code>.mx-auto</code>, too.
</p> </p>
<Example href="components/buttons#block-buttons"> <DocsExample href="components/buttons#block-buttons">
<div class="d-grid gap-2 col-6 mx-auto"> <div class="d-grid gap-2 col-6 mx-auto">
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
</div> </div>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Additional utilities can be used to adjust the alignment of buttons Additional utilities can be used to adjust the alignment of buttons
when horizontal. Here we&#39;ve taken our previous responsive when horizontal. Here we&#39;ve taken our previous responsive
@@ -436,12 +436,12 @@
button to right align the buttons when they&#39;re no longer button to right align the buttons when they&#39;re no longer
stacked. stacked.
</p> </p>
<Example href="components/buttons#block-buttons"> <DocsExample href="components/buttons#block-buttons">
<div class="d-grid gap-2 d-md-flex justify-content-md-end"> <div class="d-grid gap-2 d-md-flex justify-content-md-end">
<CButton color="primary" class="me-md-2"> Button </CButton> <CButton color="primary" class="me-md-2"> Button </CButton>
<CButton color="primary">Button</CButton> <CButton color="primary">Button</CButton>
</div> </div>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+20 -20
View File
@@ -14,7 +14,7 @@
<code>&lt;button&gt;</code> <code>&lt;button&gt;</code>
elements: elements:
</p> </p>
<Example href="components/dropdown#single-button"> <DocsExample href="components/dropdown#single-button">
<CDropdown> <CDropdown>
<CDropdownToggle color="secondary" <CDropdownToggle color="secondary"
>Dropdown button</CDropdownToggle >Dropdown button</CDropdownToggle
@@ -25,11 +25,11 @@
<CDropdownItem href="#">Something else here</CDropdownItem> <CDropdownItem href="#">Something else here</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
The best part is you can do this with any button variant, too: The best part is you can do this with any button variant, too:
</p> </p>
<Example href="components/dropdown#single-button"> <DocsExample href="components/dropdown#single-button">
<template <template
v-for="color in [ v-for="color in [
'primary', 'primary',
@@ -54,7 +54,7 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -78,7 +78,7 @@
split button and implement a more properly sized hit area next to split button and implement a more properly sized hit area next to
the main button. the main button.
</p> </p>
<Example href="components/dropdown#split-button"> <DocsExample href="components/dropdown#split-button">
<template <template
v-for="color in [ v-for="color in [
'primary', 'primary',
@@ -106,7 +106,7 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</template> </template>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -120,7 +120,7 @@
Button dropdowns work with buttons of all sizes, including default Button dropdowns work with buttons of all sizes, including default
and split dropdown buttons. and split dropdown buttons.
</p> </p>
<Example href="components/dropdown#sizing"> <DocsExample href="components/dropdown#sizing">
<CDropdown variant="btn-group"> <CDropdown variant="btn-group">
<CDropdownToggle color="secondary" size="lg"> <CDropdownToggle color="secondary" size="lg">
Large button Large button
@@ -146,8 +146,8 @@
<CDropdownItem href="#">Separated link</CDropdownItem> <CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
<Example href="components/dropdown#sizing"> <DocsExample href="components/dropdown#sizing">
<CDropdown variant="btn-group"> <CDropdown variant="btn-group">
<CDropdownToggle color="secondary" size="sm"> <CDropdownToggle color="secondary" size="sm">
Small button Small button
@@ -173,7 +173,7 @@
<CDropdownItem href="#">Separated link</CDropdownItem> <CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -189,7 +189,7 @@
<code>dark</code> property. No changes are required to the dropdown <code>dark</code> property. No changes are required to the dropdown
items. items.
</p> </p>
<Example href="components/dropdown#dark-dropdowns"> <DocsExample href="components/dropdown#dark-dropdowns">
<CDropdown dark> <CDropdown dark>
<CDropdownToggle color="secondary" <CDropdownToggle color="secondary"
>Dropdown button</CDropdownToggle >Dropdown button</CDropdownToggle
@@ -202,11 +202,11 @@
<CDropdownItem href="#">Separated link</CDropdownItem> <CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
And putting it to use in a navbar: And putting it to use in a navbar:
</p> </p>
<Example href="components/dropdown#dark-dropdowns"> <DocsExample href="components/dropdown#dark-dropdowns">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="https://coreui.io/react/"> <a class="navbar-brand" href="https://coreui.io/react/">
@@ -244,7 +244,7 @@
</div> </div>
</div> </div>
</nav> </nav>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -260,7 +260,7 @@
<code>&lt;CDropdown&gt;</code> <code>&lt;CDropdown&gt;</code>
component. component.
</p> </p>
<Example href="components/dropdown#dropup"> <DocsExample href="components/dropdown#dropup">
<CDropdown variant="btn-group" direction="dropup"> <CDropdown variant="btn-group" direction="dropup">
<CDropdownToggle color="secondary">Dropdown</CDropdownToggle> <CDropdownToggle color="secondary">Dropdown</CDropdownToggle>
<CDropdownMenu> <CDropdownMenu>
@@ -282,7 +282,7 @@
<CDropdownItem href="#">Separated link</CDropdownItem> <CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -298,7 +298,7 @@
<code>&lt;CDropdown&gt;</code> <code>&lt;CDropdown&gt;</code>
component. component.
</p> </p>
<Example href="components/dropdown#dropright"> <DocsExample href="components/dropdown#dropright">
<CDropdown variant="btn-group" direction="dropend"> <CDropdown variant="btn-group" direction="dropend">
<CDropdownToggle color="secondary">Dropdown</CDropdownToggle> <CDropdownToggle color="secondary">Dropdown</CDropdownToggle>
<CDropdownMenu> <CDropdownMenu>
@@ -320,7 +320,7 @@
<CDropdownItem href="#">Separated link</CDropdownItem> <CDropdownItem href="#">Separated link</CDropdownItem>
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -336,7 +336,7 @@
<code>&lt;CDropdown&gt;</code> <code>&lt;CDropdown&gt;</code>
component. component.
</p> </p>
<Example href="components/dropdown#dropleft"> <DocsExample href="components/dropdown#dropleft">
<CButtonGroup> <CButtonGroup>
<CDropdown variant="btn-group" direction="dropstart"> <CDropdown variant="btn-group" direction="dropstart">
<CDropdownToggle color="secondary" split /> <CDropdownToggle color="secondary" split />
@@ -350,7 +350,7 @@
</CDropdown> </CDropdown>
<CButton color="secondary">Small split button</CButton> <CButton color="secondary">Small split button</CButton>
</CButtonGroup> </CButtonGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+1 -1
View File
@@ -17,7 +17,7 @@ export default {
{ {
label: 'GitHub Commits', label: 'GitHub Commits',
backgroundColor: '#f87979', backgroundColor: '#f87979',
data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 11] data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 12]
} }
] ]
} }
+32 -32
View File
@@ -9,14 +9,14 @@
<strong>Vue Checkbox</strong> <strong>Vue Checkbox</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/checks-radios"> <DocsExample href="forms/checks-radios">
<CFormCheck id="flexCheckDefault" label="Default checkbox" /> <CFormCheck id="flexCheckDefault" label="Default checkbox" />
<CFormCheck <CFormCheck
id="flexCheckChecked" id="flexCheckChecked"
label="Checked checkbox" label="Checked checkbox"
defaultChecked defaultChecked
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -31,14 +31,14 @@
<code>&lt;label&gt;</code>s are automatically styled to match with a <code>&lt;label&gt;</code>s are automatically styled to match with a
lighter color to help indicate the input&#39;s state. lighter color to help indicate the input&#39;s state.
</p> </p>
<Example href="forms/checks-radios#disabled"> <DocsExample href="forms/checks-radios#disabled">
<CFormCheck label="Disabled checkbox" disabled /> <CFormCheck label="Disabled checkbox" disabled />
<CFormCheck <CFormCheck
label="Disabled checked checkbox" label="Disabled checked checkbox"
defaultChecked defaultChecked
disabled disabled
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -53,7 +53,7 @@
<code>&lt;label&gt;</code>s are automatically styled to match with a <code>&lt;label&gt;</code>s are automatically styled to match with a
lighter color to help indicate the input&#39;s state. lighter color to help indicate the input&#39;s state.
</p> </p>
<Example href="forms/checks-radios#radios"> <DocsExample href="forms/checks-radios#radios">
<CFormCheck <CFormCheck
type="radio" type="radio"
name="flexRadioDefault" name="flexRadioDefault"
@@ -67,7 +67,7 @@
label="Checked radio" label="Checked radio"
defaultChecked defaultChecked
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -77,7 +77,7 @@
<strong>Vue Radio</strong> <small>Disabled</small> <strong>Vue Radio</strong> <small>Disabled</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/checks-radios#disabled-1"> <DocsExample href="forms/checks-radios#disabled-1">
<CFormCheck <CFormCheck
type="radio" type="radio"
name="flexRadioDisabled" name="flexRadioDisabled"
@@ -93,7 +93,7 @@
defaultChecked defaultChecked
disabled disabled
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -108,7 +108,7 @@
<code>switch</code> boolean properly to render a toggle switch. <code>switch</code> boolean properly to render a toggle switch.
Switches also support the <code>disabled</code> attribute. Switches also support the <code>disabled</code> attribute.
</p> </p>
<Example href="forms/checks-radios#switches"> <DocsExample href="forms/checks-radios#switches">
<CFormSwitch <CFormSwitch
label="Default switch checkbox input" label="Default switch checkbox input"
id="formSwitchCheckDefault" id="formSwitchCheckDefault"
@@ -129,7 +129,7 @@
defaultChecked defaultChecked
disabled disabled
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -139,7 +139,7 @@
<strong>Vue Switches</strong> <small>Sizes</small> <strong>Vue Switches</strong> <small>Sizes</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/checks-radios#sizes"> <DocsExample href="forms/checks-radios#sizes">
<CFormSwitch <CFormSwitch
label="Default switch checkbox input" label="Default switch checkbox input"
id="formSwitchCheckDefault" id="formSwitchCheckDefault"
@@ -154,7 +154,7 @@
label="Extra large switch checkbox input" label="Extra large switch checkbox input"
id="formSwitchCheckDefaultXL" id="formSwitchCheckDefaultXL"
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -169,11 +169,11 @@
By default, any number of checkboxes and radios that are immediate By default, any number of checkboxes and radios that are immediate
sibling will be vertically stacked and appropriately spaced. sibling will be vertically stacked and appropriately spaced.
</p> </p>
<Example href="forms/checks-radios#default-stacked"> <DocsExample href="forms/checks-radios#default-stacked">
<CFormCheck id="defaultCheck1" label="Default checkbox" /> <CFormCheck id="defaultCheck1" label="Default checkbox" />
<CFormCheck id="defaultCheck2" label="Disabled checkbox" disabled /> <CFormCheck id="defaultCheck2" label="Disabled checkbox" disabled />
</Example> </DocsExample>
<Example href="forms/checks-radios#default-stacked"> <DocsExample href="forms/checks-radios#default-stacked">
<CFormCheck <CFormCheck
type="radio" type="radio"
name="exampleRadios" name="exampleRadios"
@@ -197,7 +197,7 @@
label="Disabled radio" label="Disabled radio"
disabled disabled
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -212,7 +212,7 @@
<code>inline</code> boolean property to any <code>inline</code> boolean property to any
<code>&lt;CFormCheck&gt;</code>. <code>&lt;CFormCheck&gt;</code>.
</p> </p>
<Example href="forms/checks-radios#inline"> <DocsExample href="forms/checks-radios#inline">
<CFormCheck inline id="inlineCheckbox1" value="option1" label="1" /> <CFormCheck inline id="inlineCheckbox1" value="option1" label="1" />
<CFormCheck inline id="inlineCheckbox2" value="option2" label="2" /> <CFormCheck inline id="inlineCheckbox2" value="option2" label="2" />
<CFormCheck <CFormCheck
@@ -222,8 +222,8 @@
label="3 (disabled)" label="3 (disabled)"
disabled disabled
/> />
</Example> </DocsExample>
<Example href="forms/checks-radios#inline"> <DocsExample href="forms/checks-radios#inline">
<CFormCheck <CFormCheck
inline inline
type="radio" type="radio"
@@ -249,7 +249,7 @@
label="3 (disabled)" label="3 (disabled)"
disabled disabled
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -263,7 +263,7 @@
Remember to still provide some form of accessible name for assistive Remember to still provide some form of accessible name for assistive
technologies (for instance, using <code>aria-label</code>). technologies (for instance, using <code>aria-label</code>).
</p> </p>
<Example href="forms/checks-radios#without-labels"> <DocsExample href="forms/checks-radios#without-labels">
<div> <div>
<CFormCheck id="checkboxNoLabel" value="" aria-label="..." /> <CFormCheck id="checkboxNoLabel" value="" aria-label="..." />
</div> </div>
@@ -276,7 +276,7 @@
aria-label="..." aria-label="..."
/> />
</div> </div>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -292,15 +292,15 @@
<code>&lt;CFormCheck&gt;</code> component. These toggle buttons can <code>&lt;CFormCheck&gt;</code> component. These toggle buttons can
further be grouped in a button group if needed. further be grouped in a button group if needed.
</p> </p>
<Example href="forms/checks-radios#toggle-buttons"> <DocsExample href="forms/checks-radios#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }" :button="{ color: 'primary' }"
id="btn-check" id="btn-check"
autoComplete="off" autoComplete="off"
label="Single toggle" label="Single toggle"
/> />
</Example> </DocsExample>
<Example href="forms/checks-radios#toggle-buttons"> <DocsExample href="forms/checks-radios#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }" :button="{ color: 'primary' }"
id="btn-check-2" id="btn-check-2"
@@ -308,8 +308,8 @@
label="Checked" label="Checked"
defaultChecked defaultChecked
/> />
</Example> </DocsExample>
<Example href="forms/checks-radios#toggle-buttons"> <DocsExample href="forms/checks-radios#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'primary' }" :button="{ color: 'primary' }"
id="btn-check-3" id="btn-check-3"
@@ -317,9 +317,9 @@
label="Disabled" label="Disabled"
disabled disabled
/> />
</Example> </DocsExample>
<h3>Radio toggle buttons</h3> <h3>Radio toggle buttons</h3>
<Example href="forms/checks-radios#toggle-buttons"> <DocsExample href="forms/checks-radios#toggle-buttons">
<CFormCheck <CFormCheck
:button="{ color: 'secondary' }" :button="{ color: 'secondary' }"
type="radio" type="radio"
@@ -354,13 +354,13 @@
autoComplete="off" autoComplete="off"
label="Radio" label="Radio"
/> />
</Example> </DocsExample>
<h3>Outlined styles</h3> <h3>Outlined styles</h3>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Different variants of button, such at the various outlined styles, Different variants of button, such at the various outlined styles,
are supported. are supported.
</p> </p>
<Example href="forms/checks-radios#toggle-buttons"> <DocsExample href="forms/checks-radios#toggle-buttons">
<div> <div>
<CFormCheck <CFormCheck
:button="{ color: 'primary', variant: 'outline' }" :button="{ color: 'primary', variant: 'outline' }"
@@ -397,7 +397,7 @@
label="Radio" label="Radio"
/> />
</div> </div>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+12 -12
View File
@@ -17,7 +17,7 @@
pseudo-element. Also note that the <code>&lt;CFormInput&gt;</code> must come first so pseudo-element. Also note that the <code>&lt;CFormInput&gt;</code> must come first so
we can utilize a sibling selector (e.g., <code>~</code>). we can utilize a sibling selector (e.g., <code>~</code>).
</p> </p>
<Example href="forms/floating-labels"> <DocsExample href="forms/floating-labels">
<CFormFloating class="mb-3"> <CFormFloating class="mb-3">
<CFormInput type="email" id="floatingInput" placeholder="name@example.com" /> <CFormInput type="email" id="floatingInput" placeholder="name@example.com" />
<CFormLabel htmlFor="floatingInput">Email address</CFormLabel> <CFormLabel htmlFor="floatingInput">Email address</CFormLabel>
@@ -26,12 +26,12 @@
<CFormInput type="password" id="floatingPassword" placeholder="Password" /> <CFormInput type="password" id="floatingPassword" placeholder="Password" />
<CFormLabel htmlFor="floatingPassword">Password</CFormLabel> <CFormLabel htmlFor="floatingPassword">Password</CFormLabel>
</CFormFloating> </CFormFloating>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
When there&#39;s a <code>value</code> already defined, <code>&lt;CFormLabel&gt;</code> When there&#39;s a <code>value</code> already defined, <code>&lt;CFormLabel&gt;</code>
s will automatically adjust to their floated position. s will automatically adjust to their floated position.
</p> </p>
<Example href="forms/floating-labels"> <DocsExample href="forms/floating-labels">
<CFormFloating> <CFormFloating>
<CFormInput <CFormInput
type="email" type="email"
@@ -41,7 +41,7 @@
/> />
<CFormLabel htmlFor="floatingInputValue">Input with value</CFormLabel> <CFormLabel htmlFor="floatingInputValue">Input with value</CFormLabel>
</CFormFloating> </CFormFloating>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -55,7 +55,7 @@
By default, <code>&lt;CFormTextarea&gt;</code>s will be the same height as By default, <code>&lt;CFormTextarea&gt;</code>s will be the same height as
<code>&lt;CFormInput&gt;</code>s. <code>&lt;CFormInput&gt;</code>s.
</p> </p>
<Example href="forms/floating-labels#textareas"> <DocsExample href="forms/floating-labels#textareas">
<CFormFloating> <CFormFloating>
<CFormTextarea <CFormTextarea
id="floatingTextarea" id="floatingTextarea"
@@ -63,13 +63,13 @@
></CFormTextarea> ></CFormTextarea>
<CFormLabel htmlFor="floatingTextarea">Comments</CFormLabel> <CFormLabel htmlFor="floatingTextarea">Comments</CFormLabel>
</CFormFloating> </CFormFloating>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
To set a custom height on your <code>&lt;CFormTextarea;&gt;</code>, do not use the To set a custom height on your <code>&lt;CFormTextarea;&gt;</code>, do not use the
<code>rows</code> attribute. Instead, set an explicit <code>height</code> (either <code>rows</code> attribute. Instead, set an explicit <code>height</code> (either
inline or via custom CSS). inline or via custom CSS).
</p> </p>
<Example href="forms/floating-labels#textareas"> <DocsExample href="forms/floating-labels#textareas">
<CFormFloating> <CFormFloating>
<CFormTextarea <CFormTextarea
placeholder="Leave a comment here" placeholder="Leave a comment here"
@@ -78,7 +78,7 @@
></CFormTextarea> ></CFormTextarea>
<CFormLabel htmlFor="floatingTextarea2">Comments</CFormLabel> <CFormLabel htmlFor="floatingTextarea2">Comments</CFormLabel>
</CFormFloating> </CFormFloating>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -97,7 +97,7 @@
Selects with <code>size</code> and <code>multiple</code> are not supported. Selects with <code>size</code> and <code>multiple</code> are not supported.
</strong> </strong>
</p> </p>
<Example href="forms/floating-labels#selects"> <DocsExample href="forms/floating-labels#selects">
<CFormFloating> <CFormFloating>
<CFormSelect id="floatingSelect" aria-label="Floating label select example"> <CFormSelect id="floatingSelect" aria-label="Floating label select example">
<option>Open this select menu</option> <option>Open this select menu</option>
@@ -107,7 +107,7 @@
</CFormSelect> </CFormSelect>
<CFormLabel htmlFor="floatingSelect">Works with selects</CFormLabel> <CFormLabel htmlFor="floatingSelect">Works with selects</CFormLabel>
</CFormFloating> </CFormFloating>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -121,7 +121,7 @@
When working with the CoreUI for Bootstrap grid system, be sure to place form elements When working with the CoreUI for Bootstrap grid system, be sure to place form elements
within column classes. within column classes.
</p> </p>
<Example href="forms/floating-labels#layout"> <DocsExample href="forms/floating-labels#layout">
<CRow :xs="{ gutter: 2 }"> <CRow :xs="{ gutter: 2 }">
<CCol md> <CCol md>
<CFormFloating> <CFormFloating>
@@ -146,7 +146,7 @@
</CFormFloating> </CFormFloating>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+16 -16
View File
@@ -9,7 +9,7 @@
<strong>Vue Form Control</strong> <strong>Vue Form Control</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/form-control"> <DocsExample href="forms/form-control">
<CForm> <CForm>
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="exampleFormControlInput1" <CFormLabel for="exampleFormControlInput1"
@@ -31,7 +31,7 @@
></CFormTextarea> ></CFormTextarea>
</div> </div>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -45,7 +45,7 @@
Set heights using <code>size</code> property like Set heights using <code>size</code> property like
<code>size=&#34;lg&#34;</code> and <code>size=&#34;sm&#34;</code>. <code>size=&#34;lg&#34;</code> and <code>size=&#34;sm&#34;</code>.
</p> </p>
<Example href="forms/form-control#sizing"> <DocsExample href="forms/form-control#sizing">
<CFormInput <CFormInput
type="text" type="text"
size="lg" size="lg"
@@ -65,7 +65,7 @@
placeholder="Small input" placeholder="Small input"
aria-label="sm input example" aria-label="sm input example"
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -79,7 +79,7 @@
Add the <code>disabled</code> boolean attribute on an input to give Add the <code>disabled</code> boolean attribute on an input to give
it a grayed out appearance and remove pointer events. it a grayed out appearance and remove pointer events.
</p> </p>
<Example href="forms/form-control#disabled"> <DocsExample href="forms/form-control#disabled">
<CFormInput <CFormInput
type="text" type="text"
placeholder="Disabled input" placeholder="Disabled input"
@@ -95,7 +95,7 @@
readOnly readOnly
/> />
<br /> <br />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -111,14 +111,14 @@
appear lighter (just like disabled inputs), but retain the standard appear lighter (just like disabled inputs), but retain the standard
cursor. cursor.
</p> </p>
<Example href="forms/form-control#readonly"> <DocsExample href="forms/form-control#readonly">
<CFormInput <CFormInput
type="text" type="text"
placeholder="Readonly input here..." placeholder="Readonly input here..."
aria-label="readonly input example" aria-label="readonly input example"
readOnly readOnly
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -134,7 +134,7 @@
<code>plainText</code> boolean property to remove the default form <code>plainText</code> boolean property to remove the default form
field styling and preserve the correct margin and padding. field styling and preserve the correct margin and padding.
</p> </p>
<Example href="components/accordion"> <DocsExample href="components/accordion">
<CRow class="mb-3"> <CRow class="mb-3">
<CFormLabel for="staticEmail" class="col-sm-2 col-form-label"> <CFormLabel for="staticEmail" class="col-sm-2 col-form-label">
Email Email
@@ -157,8 +157,8 @@
<CFormInput type="password" id="inputPassword" /> <CFormInput type="password" id="inputPassword" />
</div> </div>
</CRow> </CRow>
</Example> </DocsExample>
<Example href="components/accordion"> <DocsExample href="components/accordion">
<CForm class="row g-3"> <CForm class="row g-3">
<div class="col-auto"> <div class="col-auto">
<CFormLabel for="staticEmail2" class="visually-hidden"> <CFormLabel for="staticEmail2" class="visually-hidden">
@@ -186,7 +186,7 @@
<CButton type="submit" class="mb-3"> Confirm identity </CButton> <CButton type="submit" class="mb-3"> Confirm identity </CButton>
</div> </div>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -196,7 +196,7 @@
<strong>Vue Form Control</strong> <small>File input</small> <strong>Vue Form Control</strong> <small>File input</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/form-control#file-input"> <DocsExample href="forms/form-control#file-input">
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="formFile">Default file input example</CFormLabel> <CFormLabel for="formFile">Default file input example</CFormLabel>
<CFormInput type="file" id="formFile" /> <CFormInput type="file" id="formFile" />
@@ -221,7 +221,7 @@
<CFormLabel for="formFileLg">Large file input example</CFormLabel> <CFormLabel for="formFileLg">Large file input example</CFormLabel>
<CFormInput type="file" size="lg" id="formFileLg" /> <CFormInput type="file" size="lg" id="formFileLg" />
</div> </div>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -231,7 +231,7 @@
<strong>Vue Form Control</strong> <small>Color</small> <strong>Vue Form Control</strong> <small>Color</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/form-control#color"> <DocsExample href="forms/form-control#color">
<CFormLabel for="exampleColorInput">Color picker</CFormLabel> <CFormLabel for="exampleColorInput">Color picker</CFormLabel>
<CFormInput <CFormInput
type="color" type="color"
@@ -239,7 +239,7 @@
defaultValue="#563d7c" defaultValue="#563d7c"
title="Choose your color" title="Choose your color"
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+22 -22
View File
@@ -14,7 +14,7 @@
sides of an input. Remember to place <code>&lt;CFormLabel&gt;</code>s outside the sides of an input. Remember to place <code>&lt;CFormLabel&gt;</code>s outside the
input group. input group.
</p> </p>
<Example href="forms/input-group"> <DocsExample href="forms/input-group">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText id="basic-addon1">@</CInputGroupText> <CInputGroupText id="basic-addon1">@</CInputGroupText>
<CFormInput <CFormInput
@@ -50,7 +50,7 @@
<CInputGroupText>With textarea</CInputGroupText> <CInputGroupText>With textarea</CInputGroupText>
<CFormTextarea aria-label="With textarea"></CFormTextarea> <CFormTextarea aria-label="With textarea"></CFormTextarea>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -65,7 +65,7 @@
custom form field validation within an input group. You may disable this with custom form field validation within an input group. You may disable this with
<code>.flex-nowrap</code>. <code>.flex-nowrap</code>.
</p> </p>
<Example href="forms/input-group#wrapping"> <DocsExample href="forms/input-group#wrapping">
<CInputGroup class="flex-nowrap"> <CInputGroup class="flex-nowrap">
<CInputGroupText id="addon-wrapping">@</CInputGroupText> <CInputGroupText id="addon-wrapping">@</CInputGroupText>
<CFormInput <CFormInput
@@ -74,7 +74,7 @@
aria-describedby="addon-wrapping" aria-describedby="addon-wrapping"
/> />
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -92,7 +92,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
<strong>Sizing on the individual input group elements isn&#39;tsupported.</strong> <strong>Sizing on the individual input group elements isn&#39;tsupported.</strong>
</p> </p>
<Example href="forms/input-group#sizing"> <DocsExample href="forms/input-group#sizing">
<CInputGroup size="sm" class="mb-3"> <CInputGroup size="sm" class="mb-3">
<CInputGroupText id="inputGroup-sizing-sm">Small</CInputGroupText> <CInputGroupText id="inputGroup-sizing-sm">Small</CInputGroupText>
<CFormInput <CFormInput
@@ -114,7 +114,7 @@
aria-describedby="inputGroup-sizing-lg" aria-describedby="inputGroup-sizing-lg"
/> />
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -127,7 +127,7 @@
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Place any checkbox or radio option within an input group&#39;s addon instead of text. Place any checkbox or radio option within an input group&#39;s addon instead of text.
</p> </p>
<Example href="forms/input-group#checkboxes-and-radios"> <DocsExample href="forms/input-group#checkboxes-and-radios">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText> <CInputGroupText>
<CFormCheck <CFormCheck
@@ -148,7 +148,7 @@
</CInputGroupText> </CInputGroupText>
<CFormInput aria-label="Text input with radio button" /> <CFormInput aria-label="Text input with radio button" />
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -163,13 +163,13 @@
styles are only available for input groups with a single styles are only available for input groups with a single
<code>&lt;CFormInput&gt;</code>. <code>&lt;CFormInput&gt;</code>.
</p> </p>
<Example href="forms/input-group#multiple-inputs"> <DocsExample href="forms/input-group#multiple-inputs">
<CInputGroup> <CInputGroup>
<CInputGroupText>First and last name</CInputGroupText> <CInputGroupText>First and last name</CInputGroupText>
<CFormInput aria-label="First name" /> <CFormInput aria-label="First name" />
<CFormInput aria-label="Last name" /> <CFormInput aria-label="Last name" />
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -183,7 +183,7 @@
Multiple add-ons are supported and can be mixed with checkbox and radio input Multiple add-ons are supported and can be mixed with checkbox and radio input
versions.. versions..
</p> </p>
<Example href="forms/input-group#multiple-addons"> <DocsExample href="forms/input-group#multiple-addons">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText>$</CInputGroupText> <CInputGroupText>$</CInputGroupText>
<CInputGroupText>0.00</CInputGroupText> <CInputGroupText>0.00</CInputGroupText>
@@ -194,7 +194,7 @@
<CInputGroupText>$</CInputGroupText> <CInputGroupText>$</CInputGroupText>
<CInputGroupText>0.00</CInputGroupText> <CInputGroupText>0.00</CInputGroupText>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -208,7 +208,7 @@
Multiple add-ons are supported and can be mixed with checkbox and radio input Multiple add-ons are supported and can be mixed with checkbox and radio input
versions.. versions..
</p> </p>
<Example href="forms/input-group#button-addons"> <DocsExample href="forms/input-group#button-addons">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CButton type="button" color="secondary" variant="outline" id="button-addon1"> <CButton type="button" color="secondary" variant="outline" id="button-addon1">
Button Button
@@ -250,7 +250,7 @@
Button Button
</CButton> </CButton>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -260,7 +260,7 @@
<strong>Vue Input group</strong> <small>Buttons with dropdowns</small> <strong>Vue Input group</strong> <small>Buttons with dropdowns</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/input-group#buttons-with-dropdowns"> <DocsExample href="forms/input-group#buttons-with-dropdowns">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CDropdown variant="input-group"> <CDropdown variant="input-group">
<CDropdownToggle color="secondary" variant="outline"> <CDropdownToggle color="secondary" variant="outline">
@@ -318,7 +318,7 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -328,7 +328,7 @@
<strong>Vue Input group</strong> <small>Segmented buttons</small> <strong>Vue Input group</strong> <small>Segmented buttons</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/input-group#segmented-buttons"> <DocsExample href="forms/input-group#segmented-buttons">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CDropdown variant="input-group"> <CDropdown variant="input-group">
<CButton type="button" color="secondary" variant="outline"> <CButton type="button" color="secondary" variant="outline">
@@ -361,7 +361,7 @@
</CDropdownMenu> </CDropdownMenu>
</CDropdown> </CDropdown>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -371,7 +371,7 @@
<strong>Vue Input group</strong> <small>Custom select</small> <strong>Vue Input group</strong> <small>Custom select</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/input-group#custom-select"> <DocsExample href="forms/input-group#custom-select">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText component="label" for="inputGroupSelect01"> <CInputGroupText component="label" for="inputGroupSelect01">
Options Options
@@ -416,7 +416,7 @@
Button Button
</CButton> </CButton>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -426,7 +426,7 @@
<strong>Vue Input group</strong> <small>Custom file input</small> <strong>Vue Input group</strong> <small>Custom file input</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/input-group#custom-file-input"> <DocsExample href="forms/input-group#custom-file-input">
<CInputGroup class="mb-3"> <CInputGroup class="mb-3">
<CInputGroupText component="label" for="inputGroupFile01"> <CInputGroupText component="label" for="inputGroupFile01">
Upload Upload
@@ -471,7 +471,7 @@
Button Button
</CButton> </CButton>
</CInputGroup> </CInputGroup>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+18 -18
View File
@@ -11,7 +11,7 @@
for form layouts that require multiple columns, varied widths, and for form layouts that require multiple columns, varied widths, and
additional alignment options. additional alignment options.
</p> </p>
<Example href="forms/layout#form-grid"> <DocsExample href="forms/layout#form-grid">
<CRow> <CRow>
<CCol xs> <CCol xs>
<CFormInput placeholder="First name" aria-label="First name" /> <CFormInput placeholder="First name" aria-label="First name" />
@@ -20,7 +20,7 @@
<CFormInput placeholder="Last name" aria-label="Last name" /> <CFormInput placeholder="Last name" aria-label="Last name" />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -38,7 +38,7 @@
, you can have control over the gutter width in as well the inline , you can have control over the gutter width in as well the inline
as block direction. as block direction.
</p> </p>
<Example href="forms/layout#gutters"> <DocsExample href="forms/layout#gutters">
<CRow class="g-3"> <CRow class="g-3">
<CCol xs> <CCol xs>
<CFormInput placeholder="First name" aria-label="First name" /> <CFormInput placeholder="First name" aria-label="First name" />
@@ -47,11 +47,11 @@
<CFormInput placeholder="Last name" aria-label="Last name" /> <CFormInput placeholder="Last name" aria-label="Last name" />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
More complex layouts can also be created with the grid system. More complex layouts can also be created with the grid system.
</p> </p>
<Example href="forms/layout#gutters"> <DocsExample href="forms/layout#gutters">
<CForm class="row g-3"> <CForm class="row g-3">
<CCol :md="6"> <CCol :md="6">
<CFormLabel for="inputEmail4">Email</CFormLabel> <CFormLabel for="inputEmail4">Email</CFormLabel>
@@ -98,7 +98,7 @@
<CButton type="submit" color="primary">Sign in</CButton> <CButton type="submit" color="primary">Sign in</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -122,7 +122,7 @@
removed the <code>padding-top</code> on our stacked radio inputs removed the <code>padding-top</code> on our stacked radio inputs
label to better align the text baseline. label to better align the text baseline.
</p> </p>
<Example href="forms/layout#horizontal-form"> <DocsExample href="forms/layout#horizontal-form">
<CForm> <CForm>
<CRow class="mb-3"> <CRow class="mb-3">
<CFormLabel <CFormLabel
@@ -185,7 +185,7 @@
</CRow> </CRow>
<CButton type="submit" color="primary">Sign in</CButton> <CButton type="submit" color="primary">Sign in</CButton>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -202,7 +202,7 @@
correctly follow the size of <code>.form-control-lg</code> and correctly follow the size of <code>.form-control-lg</code> and
<code>.form-control-sm</code>. <code>.form-control-sm</code>.
</p> </p>
<Example href="forms/layout#horizontal-form-label-sizing"> <DocsExample href="forms/layout#horizontal-form-label-sizing">
<CRow class="mb-3"> <CRow class="mb-3">
<CFormLabel <CFormLabel
for="colFormLabelSm" for="colFormLabelSm"
@@ -250,7 +250,7 @@
/> />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -270,7 +270,7 @@
rest, with specific column classes like rest, with specific column classes like
<code>&lt;CCol sm=&#34;7&#34;&gt;</code>. <code>&lt;CCol sm=&#34;7&#34;&gt;</code>.
</p> </p>
<Example href="forms/layout#column-sizing"> <DocsExample href="forms/layout#column-sizing">
<CRow class="g-3"> <CRow class="g-3">
<CCol sm="{7}"> <CCol sm="{7}">
<CFormInput placeholder="City" aria-label="City" /> <CFormInput placeholder="City" aria-label="City" />
@@ -282,7 +282,7 @@
<CFormInput placeholder="Zip" aria-label="Zip" /> <CFormInput placeholder="Zip" aria-label="Zip" />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -300,7 +300,7 @@
only take up as much space as needed. Put another way, the column only take up as much space as needed. Put another way, the column
sizes itself based on the contents. sizes itself based on the contents.
</p> </p>
<Example href="forms/layout#auto-sizing"> <DocsExample href="forms/layout#auto-sizing">
<CForm class="row gy-2 gx-3 align-items-center"> <CForm class="row gy-2 gx-3 align-items-center">
<CCol xs="auto"> <CCol xs="auto">
<CFormLabel <CFormLabel
@@ -351,12 +351,12 @@
<CButton type="submit" color="primary">Submit</CButton> <CButton type="submit" color="primary">Submit</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
You can then remix that once again with size-specific column You can then remix that once again with size-specific column
classes. classes.
</p> </p>
<Example href="forms/layout#auto-sizing"> <DocsExample href="forms/layout#auto-sizing">
<CForm class="row gx-3 gy-2 align-items-center"> <CForm class="row gx-3 gy-2 align-items-center">
<CCol :sm="3"> <CCol :sm="3">
<CFormLabel <CFormLabel
@@ -407,7 +407,7 @@
<CButton type="submit" color="primary">Submit</CButton> <CButton type="submit" color="primary">Submit</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -426,7 +426,7 @@
<code>.align-items-center</code> aligns the form elements to the <code>.align-items-center</code> aligns the form elements to the
middle, making the <code>&lt;CFormCheck&gt;</code> align properly. middle, making the <code>&lt;CFormCheck&gt;</code> align properly.
</p> </p>
<Example href="forms/layout#inline-forms"> <DocsExample href="forms/layout#inline-forms">
<CForm class="row row-cols-lg-auto g-3 align-items-center"> <CForm class="row row-cols-lg-auto g-3 align-items-center">
<CCol :xs="12"> <CCol :xs="12">
<CFormLabel <CFormLabel
@@ -468,7 +468,7 @@
<CButton type="submit" color="primary">Submit</CButton> <CButton type="submit" color="primary">Submit</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+8 -8
View File
@@ -14,10 +14,10 @@
<code>&lt;input type=&#34;range&#34;&gt;</code> controls with <code>&lt;input type=&#34;range&#34;&gt;</code> controls with
<code>&lt;CFormRange&gt;</code>. <code>&lt;CFormRange&gt;</code>.
</p> </p>
<Example href="forms/range"> <DocsExample href="forms/range">
<CFormLabel for="customRange1">Example range</CFormLabel> <CFormLabel for="customRange1">Example range</CFormLabel>
<CFormRange id="customRange1" /> <CFormRange id="customRange1" />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -31,10 +31,10 @@
Add the <code>disabled</code> boolean attribute on an input to give Add the <code>disabled</code> boolean attribute on an input to give
it a grayed out appearance and remove pointer events. it a grayed out appearance and remove pointer events.
</p> </p>
<Example href="forms/range#disabled"> <DocsExample href="forms/range#disabled">
<CFormLabel for="disabledRange">Disabled range</CFormLabel> <CFormLabel for="disabledRange">Disabled range</CFormLabel>
<CFormRange id="disabledRange" disabled /> <CFormRange id="disabledRange" disabled />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -50,10 +50,10 @@
You may specify new values for those using the <code>min</code> and You may specify new values for those using the <code>min</code> and
<code>max</code> attributes. <code>max</code> attributes.
</p> </p>
<Example href="forms/range#min-and-max"> <DocsExample href="forms/range#min-and-max">
<CFormLabel for="customRange2">Example range</CFormLabel> <CFormLabel for="customRange2">Example range</CFormLabel>
<CFormRange :min="0" :max="5" defaultValue="3" id="customRange2" /> <CFormRange :min="0" :max="5" defaultValue="3" id="customRange2" />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -69,7 +69,7 @@
below, we double the number of steps by using below, we double the number of steps by using
<code>step=&#34;0.5&#34;</code>. <code>step=&#34;0.5&#34;</code>.
</p> </p>
<Example href="forms/range#steps"> <DocsExample href="forms/range#steps">
<CFormLabel for="customRange3">Example range</CFormLabel> <CFormLabel for="customRange3">Example range</CFormLabel>
<CFormRange <CFormRange
:min="0" :min="0"
@@ -78,7 +78,7 @@
defaultValue="3" defaultValue="3"
id="customRange3" id="customRange3"
/> />
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+10 -10
View File
@@ -9,14 +9,14 @@
<strong>Vue Select</strong> <small>Default</small> <strong>Vue Select</strong> <small>Default</small>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href="forms/select"> <DocsExample href="forms/select">
<CFormSelect aria-label="Default select example"> <CFormSelect aria-label="Default select example">
<option>Open this select menu</option> <option>Open this select menu</option>
<option value="1">One</option> <option value="1">One</option>
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -30,7 +30,7 @@
You may also choose from small and large custom selects to match our You may also choose from small and large custom selects to match our
similarly sized text inputs. similarly sized text inputs.
</p> </p>
<Example href="forms/select#sizing"> <DocsExample href="forms/select#sizing">
<CFormSelect <CFormSelect
size="lg" size="lg"
class="mb-3" class="mb-3"
@@ -51,11 +51,11 @@
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
The <code>multiple</code> attribute is also supported: The <code>multiple</code> attribute is also supported:
</p> </p>
<Example href="forms/select#sizing"> <DocsExample href="forms/select#sizing">
<CFormSelect <CFormSelect
size="lg" size="lg"
multiple multiple
@@ -66,11 +66,11 @@
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
As is the <code>htmlSize</code> property: As is the <code>htmlSize</code> property:
</p> </p>
<Example href="forms/select#sizing"> <DocsExample href="forms/select#sizing">
<CFormSelect <CFormSelect
size="lg" size="lg"
multiple multiple
@@ -81,7 +81,7 @@
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -95,14 +95,14 @@
Add the <code>disabled</code> boolean attribute on a select to give Add the <code>disabled</code> boolean attribute on a select to give
it a grayed out appearance and remove pointer events. it a grayed out appearance and remove pointer events.
</p> </p>
<Example href="forms/select#disabled"> <DocsExample href="forms/select#disabled">
<CFormSelect aria-label="Disabled select example" disabled> <CFormSelect aria-label="Disabled select example" disabled>
<option>Open this select menu</option> <option>Open this select menu</option>
<option value="1">One</option> <option value="1">One</option>
<option value="2">Two</option> <option value="2">Two</option>
<option value="3">Three</option> <option value="3">Three</option>
</CFormSelect> </CFormSelect>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+10 -10
View File
@@ -24,7 +24,7 @@
Custom feedback styles apply custom colors, borders, focus styles, Custom feedback styles apply custom colors, borders, focus styles,
and background icons to better communicate feedback. and background icons to better communicate feedback.
</p> </p>
<Example href="forms/validation"> <DocsExample href="forms/validation">
<CForm <CForm
class="row g-3 needs-validation" class="row g-3 needs-validation"
noValidate noValidate
@@ -103,7 +103,7 @@
<CButton color="primary" type="submit">Submit form</CButton> <CButton color="primary" type="submit">Submit form</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -124,7 +124,7 @@
While these feedback styles cannot be styled with CSS, you can still While these feedback styles cannot be styled with CSS, you can still
customize the feedback text through JavaScript. customize the feedback text through JavaScript.
</p> </p>
<Example href="forms/validation#browser-defaults"> <DocsExample href="forms/validation#browser-defaults">
<CForm <CForm
class="row g-3 needs-validation" class="row g-3 needs-validation"
:validated="validatedDefault01" :validated="validatedDefault01"
@@ -204,7 +204,7 @@
<CButton color="primary" type="submit">Submit form</CButton> <CButton color="primary" type="submit">Submit form</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -227,7 +227,7 @@
more than one <code>id</code> to be referenced, in case the field more than one <code>id</code> to be referenced, in case the field
already points to additional form text). already points to additional form text).
</p> </p>
<Example href="forms/validation#server-side"> <DocsExample href="forms/validation#server-side">
<CForm class="row g-3 needs-validation"> <CForm class="row g-3 needs-validation">
<CCol :md="4"> <CCol :md="4">
<CFormLabel htmlFor="validationServer01">Email</CFormLabel> <CFormLabel htmlFor="validationServer01">Email</CFormLabel>
@@ -320,7 +320,7 @@
<CButton color="primary" type="submit"> Submit form </CButton> <CButton color="primary" type="submit"> Submit form </CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -339,7 +339,7 @@
<li><code>&lt;CFormSelect&gt;</code>s</li> <li><code>&lt;CFormSelect&gt;</code>s</li>
<li><code>&lt;CFormCheck&gt;</code>s</li> <li><code>&lt;CFormCheck&gt;</code>s</li>
</ul> </ul>
<Example href="forms/validation#supported-elements"> <DocsExample href="forms/validation#supported-elements">
<CForm :validated="true"> <CForm :validated="true">
<div class="mb-3"> <div class="mb-3">
<CFormLabel for="validationTextarea" class="form-label" <CFormLabel for="validationTextarea" class="form-label"
@@ -410,7 +410,7 @@
> >
</div> </div>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -428,7 +428,7 @@
the example below, our column classes have this already, but your the example below, our column classes have this already, but your
project may require an alternative setup. project may require an alternative setup.
</p> </p>
<Example href="forms/validation#tooltips"> <DocsExample href="forms/validation#tooltips">
<CForm <CForm
class="row g-3 needs-validation" class="row g-3 needs-validation"
noValidate noValidate
@@ -498,7 +498,7 @@
<CButton color="primary" type="submit">Submit form</CButton> <CButton color="primary" type="submit">Submit form</CButton>
</CCol> </CCol>
</CForm> </CForm>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+18 -25
View File
@@ -6,21 +6,14 @@
<strong>Vue Brands</strong> <strong>Vue Brands</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<!-- TODO: icons, brands and flags href-s to documentation --> <CRow class="text-center">
<Example href=""> <template v-for="(brand, brandName) in brands" :key="brandName">
<CRow class="text-center"> <CCol class="mb-5" col="3" sm="2">
<template v-for="(brand, brandName) in brands" :key="brandName"> <CIcon size="lg" :content="brand" />
<CCol <div>{{ toKebabCase(brandName) }}</div>
class="mb-5" </CCol>
col="3" </template>
sm="2" </CRow>
>
<CIcon size="lg" :content="brand"/>
<div>{{toKebabCase(brandName)}}</div>
</CCol>
</template>
</CRow>
</Example>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -30,16 +23,16 @@
<script> <script>
import { brandSet as brands } from '@coreui/icons' import { brandSet as brands } from '@coreui/icons'
export default { export default {
name: "Brands", name: 'Brands',
data: function(){ data: function () {
return { return {
brands: brands brands: brands,
}
},
methods: {
toKebabCase (str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
} }
}, },
}; methods: {
toKebabCase(str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
},
},
}
</script> </script>
+18 -24
View File
@@ -6,20 +6,14 @@
<strong>Vue CoreUI Icons</strong> <strong>Vue CoreUI Icons</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href=""> <CRow class="text-center">
<CRow class="text-center"> <template v-for="(icon, iconName) in freeSet" :key="iconName">
<template v-for="(icon, iconName) in freeSet" :key="iconName"> <CCol class="mb-5" col="3" sm="2">
<CCol <CIcon :content="icon" size="lg" />
class="mb-5" <div>{{ toKebabCase(iconName) }}</div>
col="3" </CCol>
sm="2" </template>
> </CRow>
<CIcon :content="icon" size="lg"/>
<div>{{toKebabCase(iconName)}}</div>
</CCol>
</template>
</CRow>
</Example>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -29,16 +23,16 @@
<script> <script>
import { freeSet } from '@coreui/icons' import { freeSet } from '@coreui/icons'
export default { export default {
name: "CoreUIIcons", name: 'CoreUIIcons',
data: function(){ data: function () {
return { return {
freeSet: freeSet freeSet: freeSet,
}
},
methods: {
toKebabCase (str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
} }
}, },
}; methods: {
toKebabCase(str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
},
},
}
</script> </script>
+19 -25
View File
@@ -6,25 +6,19 @@
<strong>Vue Flags</strong> <strong>Vue Flags</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href=""> <CRow class="text-center">
<CRow class="text-center"> <!-- For using the flags inline with text add the classes
<!-- For using the flags inline with text add the classes
<code>.flag-icon</code> and <code>.flag-icon-xx</code> <code>.flag-icon</code> and <code>.flag-icon-xx</code>
(where xx is the ISO 3166-1-alpha-2 code of a country) to an empty (where xx is the ISO 3166-1-alpha-2 code of a country) to an empty
span. If you want to have a squared version flag then add the class span. If you want to have a squared version flag then add the class
flag-icon-squared as well. --> flag-icon-squared as well. -->
<template v-for="(flag, flagName) in flagSet" :key="flagName"> <template v-for="(flag, flagName) in flagSet" :key="flagName">
<CCol <CCol class="mb-5" col="3" sm="2">
class="mb-5" <CIcon size="lg" :content="flag" />
col="3" <div>{{ toKebabCase(flagName) }}</div>
sm="2" </CCol>
> </template>
<CIcon size="lg" :content="flag"/> </CRow>
<div>{{toKebabCase(flagName)}}</div>
</CCol>
</template>
</CRow>
</Example>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -34,16 +28,16 @@
<script> <script>
import { flagSet } from '@coreui/icons' import { flagSet } from '@coreui/icons'
export default { export default {
name: "Flags", name: 'Flags',
data: function(){ data: function () {
return { return {
flagSet: flagSet flagSet: flagSet,
}
},
methods: {
toKebabCase (str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
} }
}, },
}; methods: {
toKebabCase(str) {
return str.replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase()
},
},
}
</script> </script>
+8 -8
View File
@@ -21,7 +21,7 @@
</a> </a>
. .
</p> </p>
<Example href="components/alert"> <DocsExample href="components/alert">
<CAlert color="primary" <CAlert color="primary"
>A simple primary alertcheck it out!</CAlert >A simple primary alertcheck it out!</CAlert
> >
@@ -38,7 +38,7 @@
<CAlert color="info">A simple info alertcheck it out!</CAlert> <CAlert color="info">A simple info alertcheck it out!</CAlert>
<CAlert color="light">A simple light alertcheck it out!</CAlert> <CAlert color="light">A simple light alertcheck it out!</CAlert>
<CAlert color="dark">A simple dark alertcheck it out!</CAlert> <CAlert color="dark">A simple dark alertcheck it out!</CAlert>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -52,7 +52,7 @@
Use the <code>&lt;CAlertLink&gt;</code> component to immediately Use the <code>&lt;CAlertLink&gt;</code> component to immediately
give matching colored links inside any alert. give matching colored links inside any alert.
</p> </p>
<Example href="components/alert#link-color"> <DocsExample href="components/alert#link-color">
<CAlert color="primary"> <CAlert color="primary">
A simple primary alert with A simple primary alert with
<CAlertLink href="#">an example link</CAlertLink>. Give it a click <CAlertLink href="#">an example link</CAlertLink>. Give it a click
@@ -93,7 +93,7 @@
<CAlertLink href="#">an example link</CAlertLink>. Give it a click <CAlertLink href="#">an example link</CAlertLink>. Give it a click
if you like. if you like.
</CAlert> </CAlert>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -107,7 +107,7 @@
Alert can also incorporate supplementary components &amp; elements Alert can also incorporate supplementary components &amp; elements
like heading, paragraph, and divider. like heading, paragraph, and divider.
</p> </p>
<Example href="components/alert#additional-content"> <DocsExample href="components/alert#additional-content">
<CAlert color="success"> <CAlert color="success">
<CAlertHeading tag="h4">Well done!</CAlertHeading> <CAlertHeading tag="h4">Well done!</CAlertHeading>
<p> <p>
@@ -121,7 +121,7 @@
things nice and tidy. things nice and tidy.
</p> </p>
</CAlert> </CAlert>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -135,12 +135,12 @@
Alerts can also be easily dismissed. Just add the Alerts can also be easily dismissed. Just add the
<code>dismissible</code> prop. <code>dismissible</code> prop.
</p> </p>
<Example href="components/alert#dismissing"> <DocsExample href="components/alert#dismissing">
<CAlert color="warning" dismissible @dismiss="alert"> <CAlert color="warning" dismissible @dismiss="alert">
<strong>Go right ahead</strong> and click that dimiss over there <strong>Go right ahead</strong> and click that dimiss over there
on the right. on the right.
</CAlert> </CAlert>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+10 -10
View File
@@ -13,22 +13,22 @@
Bootstrap badge scale to suit the size of the parent element by Bootstrap badge scale to suit the size of the parent element by
using relative font sizing and <code>em</code> units. using relative font sizing and <code>em</code> units.
</p> </p>
<Example href="components/badge"> <DocsExample href="components/badge">
<h1>Example heading <CBadge color="secondary">New</CBadge></h1> <h1>Example heading <CBadge color="secondary">New</CBadge></h1>
<h2>Example heading <CBadge color="secondary">New</CBadge></h2> <h2>Example heading <CBadge color="secondary">New</CBadge></h2>
<h3>Example heading <CBadge color="secondary">New</CBadge></h3> <h3>Example heading <CBadge color="secondary">New</CBadge></h3>
<h4>Example heading <CBadge color="secondary">New</CBadge></h4> <h4>Example heading <CBadge color="secondary">New</CBadge></h4>
<h5>Example heading <CBadge color="secondary">New</CBadge></h5> <h5>Example heading <CBadge color="secondary">New</CBadge></h5>
<h6>Example heading <CBadge color="secondary">New</CBadge></h6> <h6>Example heading <CBadge color="secondary">New</CBadge></h6>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Badges can be used as part of links or buttons to provide a counter. Badges can be used as part of links or buttons to provide a counter.
</p> </p>
<Example href="components/badge"> <DocsExample href="components/badge">
<CButton color="primary"> <CButton color="primary">
Notifications <CBadge color="secondary">4</CBadge> Notifications <CBadge color="secondary">4</CBadge>
</CButton> </CButton>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
Remark that depending on how you use them, badges may be complicated Remark that depending on how you use them, badges may be complicated
for users of screen readers and related assistive technologies. for users of screen readers and related assistive technologies.
@@ -37,12 +37,12 @@
Unless the context is clear, consider including additional context Unless the context is clear, consider including additional context
with a visually hidden piece of additional text. with a visually hidden piece of additional text.
</p> </p>
<Example href="components/badge"> <DocsExample href="components/badge">
<CButton color="primary"> <CButton color="primary">
Profile <CBadge color="secondary">9</CBadge> Profile <CBadge color="secondary">9</CBadge>
<span class="visually-hidden">unread messages</span> <span class="visually-hidden">unread messages</span>
</CButton> </CButton>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -56,7 +56,7 @@
Add any of the below-mentioned <code>color</code> props to modify Add any of the below-mentioned <code>color</code> props to modify
the presentation of a badge. the presentation of a badge.
</p> </p>
<Example href="components/badge#contextual-variations"> <DocsExample href="components/badge#contextual-variations">
<CBadge color="primary">primary</CBadge> <CBadge color="primary">primary</CBadge>
<CBadge color="success">success</CBadge> <CBadge color="success">success</CBadge>
<CBadge color="danger">danger</CBadge> <CBadge color="danger">danger</CBadge>
@@ -64,7 +64,7 @@
<CBadge color="info">info</CBadge> <CBadge color="info">info</CBadge>
<CBadge color="light">light</CBadge> <CBadge color="light">light</CBadge>
<CBadge color="dark">dark</CBadge> <CBadge color="dark">dark</CBadge>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
<CCard class="mb-4"> <CCard class="mb-4">
@@ -76,7 +76,7 @@
Apply the <code>shape=&#34;rounded-pill&#34;</code> prop to make Apply the <code>shape=&#34;rounded-pill&#34;</code> prop to make
badges rounded. badges rounded.
</p> </p>
<Example href="components/badge#pill-badges"> <DocsExample href="components/badge#pill-badges">
<CBadge color="primary" shape="rounded-pill"> primary </CBadge> <CBadge color="primary" shape="rounded-pill"> primary </CBadge>
<CBadge color="success" shape="rounded-pill"> success </CBadge> <CBadge color="success" shape="rounded-pill"> success </CBadge>
<CBadge color="danger" shape="rounded-pill"> danger </CBadge> <CBadge color="danger" shape="rounded-pill"> danger </CBadge>
@@ -84,7 +84,7 @@
<CBadge color="info" shape="rounded-pill"> info </CBadge> <CBadge color="info" shape="rounded-pill"> info </CBadge>
<CBadge color="light" shape="rounded-pill"> light </CBadge> <CBadge color="light" shape="rounded-pill"> light </CBadge>
<CBadge color="dark" shape="rounded-pill"> dark </CBadge> <CBadge color="dark" shape="rounded-pill"> dark </CBadge>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+23 -20
View File
@@ -1,5 +1,8 @@
<template> <template>
<CRow> <CRow>
<CCol :xs="12">
<DocsCallout name="Modal" href="components/spinner" />
</CCol>
<CCol :xs="12"> <CCol :xs="12">
<CCard class="mb-4"> <CCard class="mb-4">
<CCardHeader> <CCardHeader>
@@ -14,7 +17,7 @@
include modal headers with dismiss actions whenever possible, or include modal headers with dismiss actions whenever possible, or
provide another explicit dismiss action. provide another explicit dismiss action.
</p> </p>
<Example href="components/modal.html#modal-components"> <DocsExample href="components/modal.html#modal-components">
<CModal <CModal
class="show d-block position-static" class="show d-block position-static"
:backdrop="false" :backdrop="false"
@@ -30,7 +33,7 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -44,7 +47,7 @@
Toggle a working modal demo by clicking the button below. It will Toggle a working modal demo by clicking the button below. It will
slide down and fade in from the top of the page. slide down and fade in from the top of the page.
</p> </p>
<Example href="components/modal.html#live-demo"> <DocsExample href="components/modal.html#live-demo">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -89,7 +92,7 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -105,7 +108,7 @@
meaning it will not close when clicking outside it. Click the button meaning it will not close when clicking outside it. Click the button
below to try it. below to try it.
</p> </p>
<Example href="components/modal.html#static-backdrop"> <DocsExample href="components/modal.html#static-backdrop">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -151,7 +154,7 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -167,7 +170,7 @@
meaning it will not close when clicking outside it. Click the button meaning it will not close when clicking outside it. Click the button
below to try it. below to try it.
</p> </p>
<Example href="components/modal.html#scrolling-long-content"> <DocsExample href="components/modal.html#scrolling-long-content">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -294,13 +297,13 @@
</p> </p>
</CModalBody> </CModalBody>
</CModal> </CModal>
</Example> </DocsExample>
<p class="text-medium-emphasis small"> <p class="text-medium-emphasis small">
You can also create a scrollable modal that allows scroll the modal You can also create a scrollable modal that allows scroll the modal
body by adding body by adding
<code>scrollable</code> prop. <code>scrollable</code> prop.
</p> </p>
<Example href="components/modal.html#scrolling-long-content"> <DocsExample href="components/modal.html#scrolling-long-content">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -428,7 +431,7 @@
</p> </p>
</CModalBody> </CModalBody>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -442,7 +445,7 @@
Add <code>alignment=&#34;center&#34;</code> to Add <code>alignment=&#34;center&#34;</code> to
<code>&lt;CModal&gt;</code> to vertically center the modal. <code>&lt;CModal&gt;</code> to vertically center the modal.
</p> </p>
<Example href="components/modal.html#vertically-centered"> <DocsExample href="components/modal.html#vertically-centered">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -490,9 +493,9 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
<Example href="components/modal.html#vertically-centered"> <DocsExample href="components/modal.html#vertically-centered">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -541,7 +544,7 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -557,7 +560,7 @@
needed. When modals are closed, any tooltips and popovers within are needed. When modals are closed, any tooltips and popovers within are
also automatically dismissed. also automatically dismissed.
</p> </p>
<Example href="components/modal.html#tooltips-and-popovers"> <DocsExample href="components/modal.html#tooltips-and-popovers">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -620,7 +623,7 @@
<CButton color="primary">Save changes</CButton> <CButton color="primary">Save changes</CButton>
</CModalFooter> </CModalFooter>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -681,7 +684,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<Example href="components/modal.html#optional-sizes"> <DocsExample href="components/modal.html#optional-sizes">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -772,7 +775,7 @@
</CModalHeader> </CModalHeader>
<CModalBody> ... </CModalBody> <CModalBody> ... </CModalBody>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -832,7 +835,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<Example href="components/modal.html#fullscreen-modal"> <DocsExample href="components/modal.html#fullscreen-modal">
<CButton <CButton
color="primary" color="primary"
@click=" @click="
@@ -1013,7 +1016,7 @@
</CModalHeader> </CModalHeader>
<CModalBody> ... </CModalBody> <CModalBody> ... </CModalBody>
</CModal> </CModal>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
+23 -23
View File
@@ -6,10 +6,10 @@
<strong>Vue Widgets</strong> <strong>Vue Widgets</strong>
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<Example href=""> <DocsExample href="">
<WidgetsStatsA /> <WidgetsStatsA />
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="3"> <CCol :xs="3">
<CWidgetStatsB <CWidgetStatsB
@@ -49,8 +49,8 @@
/> />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="3"> <CCol :xs="3">
<CWidgetStatsB <CWidgetStatsB
@@ -98,9 +98,9 @@
/> />
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="2"> <CCol :xs="2">
<CWidgetStatsE title="title" value="1,123"> <CWidgetStatsE title="title" value="1,123">
@@ -247,8 +247,8 @@
</CWidgetStatsE> </CWidgetStatsE>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="3"> <CCol :xs="3">
<CWidgetStatsF color="primary" title="Title" value="$1.999,50"> <CWidgetStatsF color="primary" title="Title" value="$1.999,50">
@@ -279,8 +279,8 @@
</CWidgetStatsF> </CWidgetStatsF>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="3"> <CCol :xs="3">
<CWidgetStatsF color="primary" title="Title" value="$1.999,50"> <CWidgetStatsF color="primary" title="Title" value="$1.999,50">
@@ -371,8 +371,8 @@
</CWidgetStatsF> </CWidgetStatsF>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="3"> <CCol :xs="3">
<CWidgetStatsF <CWidgetStatsF
@@ -423,11 +423,11 @@
</CWidgetStatsF> </CWidgetStatsF>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<WidgetsStatsD /> <WidgetsStatsD />
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CCardGroup> <CCardGroup>
<CWidgetStatsC <CWidgetStatsC
class="mb-3" class="mb-3"
@@ -480,8 +480,8 @@
/></template> /></template>
</CWidgetStatsC> </CWidgetStatsC>
</CCardGroup> </CCardGroup>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="2"> <CCol :xs="2">
<CWidgetStatsC <CWidgetStatsC
@@ -556,8 +556,8 @@
</CWidgetStatsC> </CWidgetStatsC>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
<Example href=""> <DocsExample href="">
<CRow> <CRow>
<CCol :xs="2"> <CCol :xs="2">
<CWidgetStatsC <CWidgetStatsC
@@ -644,7 +644,7 @@
</CWidgetStatsC> </CWidgetStatsC>
</CCol> </CCol>
</CRow> </CRow>
</Example> </DocsExample>
</CCardBody> </CCardBody>
</CCard> </CCard>
</CCol> </CCol>
@@ -656,7 +656,7 @@ import { getStyle } from "@coreui/utils";
import { CChart } from "@coreui/vue-chartjs"; import { CChart } from "@coreui/vue-chartjs";
import WidgetsStatsA from "./WidgetsStatsTypeA.vue"; import WidgetsStatsA from "./WidgetsStatsTypeA.vue";
import WidgetsStatsD from "./WidgetsStatsTypeD.vue"; import WidgetsStatsD from "./WidgetsStatsTypeD.vue";
import Example from "../../components/Example.vue"; import Example from "../../components/DocsExample.vue";
export default { export default {
name: "Widgets", name: "Widgets",
components: { components: {
+1 -1
View File
@@ -46,7 +46,7 @@
backgroundColor: 'transparent', backgroundColor: 'transparent',
borderColor: 'rgba(255,255,255,.55)', borderColor: 'rgba(255,255,255,.55)',
pointBackgroundColor: '#321fdb', pointBackgroundColor: '#321fdb',
data: [65, 59, 84, 84, 51, 55, 40], data: [68, 59, 84, 84, 51, 55, 40],
}, },
], ],
}" }"