+ Click the accordions below to expand/collapse the accordion content. +
+.accordion-body
, though the
+ transition does limit overflow.
+ .accordion-body
, though the
+ transition does limit overflow.
+ .accordion-body
, though the
+ transition does limit overflow.
+
+ Add flush
to remove the default{' '}
+ background-color
, some borders, and some rounded corners to
+ render accordions edge-to-edge with their parent container.
+
.accordion-body
, though the
+ transition does limit overflow.
+ .accordion-body
, though the
+ transition does limit overflow.
+ .accordion-body
, though the
+ transition does limit overflow.
+ --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -
- -
+ Cards are built with as little markup and styles as possible but still manage to + deliver a bunch of control and customization. Built with flexbox, they offer easy + alignment and mix well with other CoreUI components. Cards have no top, left, and + right margins by default, so use{' '} + + spacing utilities + {' '} + as needed. They have no fixed width to start, so they'll fill the full width of its + parent. +
++ Below is an example of a basic card with mixed content and a fixed width. Cards have + no fixed width to start, so they'll naturally fill the full width of its parent + element. +
+
+ The main block of a card is the <CCardBody>
. Use it
+ whenever you need a padded section within a card.
+
+ Card titles are managed by <CCardTitle>
component.
+ Identically, links are attached and collected next to each other by{' '}
+ <CCardLink>
component.
+
+ Subtitles are managed by <CCardSubtitle>
component.
+ If the <CCardTitle>
also, the{' '}
+ <CCardSubtitle>
items are stored in a{' '}
+ <CCardBody>
item, the card title, and subtitle are
+ arranged rightly.
+
+ .card-img-top
places a picture to the top of the card. With{' '}
+ .card-text
, text can be added to the card. Text within{' '}
+ .card-text
can additionally be styled with the regular HTML
+ tags.
+
+ Create lists of content in a card with a flush list group. +
++ Combine and match many content types to build the card you need, or throw everything + in there. Shown below are image styles, blocks, text styles, and a list group—all + wrapped in a fixed-width card. +
++ Add an optional header and/or footer within a card. +
+
+ Card headers can be styled by adding ex. component="h5"
.
+
+++ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat + a ante. +
+ +
+ Cards assume no specific width
to start, so they'll be 100%
+ wide unless otherwise stated. You can adjust this as required with custom CSS, grid
+ classes, grid Sass mixins, or services.
+
+ Using the grid, wrap cards in columns and rows as needed. +
++ Use some of{' '} + + available sizing utilities + {' '} + to rapidly set a card's width. +
++ Use custom CSS in your stylesheets or as inline styles to set a width. +
++ You can instantly change the text arrangement of any card—in its whole or specific + parts—with{' '} + + text align classes + + . +
+
+ Add some navigation to a <CCardHeader>
with our{' '}
+ <CNav>
component.
+
+ Similar to headers and footers, cards can include top and bottom "image caps"—images + at the top or bottom of a card. +
++ Cards include various options for customizing their backgrounds, borders, and color. +
+
+ Use color
property to change the appearance of a card.
+
+ Use{' '}
+
+ border utilities
+ {' '}
+ to change just the border-color
of a card. Note that you
+ can set textColor
property on the{' '}
+ <CCard>
or a subset of the card's contents as shown
+ below.
+
+ Use{' '}
+
+ border utilities
+ {' '}
+ to change just the border-color
of a card. Note that you
+ can set textColor
property on the{' '}
+ <CCard>
or a subset of the card's contents as shown
+ below.
+
+ Use card groups to render cards as a single, attached element with equal width and
+ height columns. Card groups start off stacked and use{' '}
+ display: flex;
to become attached with uniform dimensions
+ starting at the sm
breakpoint.
+
+ When using card groups with footers, their content will automatically line up. +
+
+ Use the CRow
component and set{' '}
+ {xs|sm|md|lg|xl|xxl}={{ cols: * }}
{' '}
+ property to control how many grid columns (wrapped around your cards) you show per
+ row. For example, here's xs={{cols: 1}}
{' '}
+ laying out the cards on one column, and{' '}
+ md={{cols: 1}}
splitting four cards to
+ equal width across multiple rows, from the medium breakpoint up.
+
+ Change it to md={{ cols: 3}}
and you'll
+ see the fourth card wrap.
+
+ The main block of a card is the <CCardBody>
. Use it
+ whenever you need a padded section within a card.
+
Here’s a carousel with slides
+
+ Adding in the previous and next controls by controls
{' '}
+ property.
+
Slide 1
-Slide 2
-Slide 3
-+ You can attach the indicators to the carousel, lengthwise the controls, too. +
+Slide 1
-Slide 2
-Slide 3
-
+ You can add captions to slides with the{' '}
+ <CCarouselCaption>
element within any{' '}
+ <CCarouselItem>
. They can be immediately hidden on
+ smaller viewports, as shown below, with optional{' '}
+
+ display utilities
+
+ . We hide them with .d-none
and draw them back on
+ medium-sized devices with .d-md-block
.
+
Slide 1
+Some representative placeholder content for the first slide.
Slide 2
+Some representative placeholder content for the first slide.
Slide 3
+Some representative placeholder content for the first slide.
+ Add transition="crossfade"
to your carousel to animate
+ slides with a fade transition instead of a slide.
+
+ Add dark
property to the{' '}
+ CCarousel
for darker controls, indicators, and captions.
+ Controls have been inverted from their default white fill with the{' '}
+ filter
CSS property. Captions and controls have additional
+ Sass variables that customize the color
and{' '}
+ background-color
.
+
Some representative placeholder content for the first slide.
+Some representative placeholder content for the first slide.
+Some representative placeholder content for the first slide.
+You can use a link or a button component.
+
+ A <CButton>
can show and hide multiple elements.
+