React Bootstrap Panels are the flexible and extensible content containers with multiple variants, which include a wide variety of content, ...
Overview
API
ReactBootstrapPanels
ReactPanels
-Bootstrap4&MaterialDesign
Note:ThisdocumentationisforanolderversionofBootstrap(v.4).A
newerversionisavailableforBootstrap5.Werecommendmigratingtothelatestversionofourproduct-MaterialDesignfor
Bootstrap5.Gotodocsv.5
ReactBootstrapPanelsaretheflexibleandextensiblecontentcontainerswithmultiplevariants,whichincludeawidevarietyofcontent,contextualbackgroundcolors,andpowerfuldisplayoptions.Panelsaresimilartocards,buttheydon'tincludemedia.
Basicexample
Panelsarebuiltwithaslittlemarkupandstylesaspossible,butstillmanagetodeliveratonofcontroland
customization.Theyhavenomarginbydefault,souse
spacingutilitiesasneeded.
Belowisanexampleofabasicpanelwithmixedcontentandafixedwidth.Panelshavenofixedwidthtostart,
sothey’llnaturallyfillthefullwidthofitsparentelement.Thisiseasytocustomize.
Paneltitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Cardlink
Anotherlink
Showcode
JSX
importReactfrom'react';
import{MDBCard,MDBCardTitle,MDBCardText,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
PanelTitle
Somequickexampletexttobuildonthepaneltitleandmakeupthe
bulkofthepanel'scontent.
MDBCardlink
Anotherlink
);
};
exportdefaultPanelPage;
Contenttypes
Panelssupportawidevarietyofcontent,includingtext,listgroups,links,andmore.Below
areexamplesofwhat’ssupported.
Body
Thebuildingblockofapanelisthe
component.Useitwheneveryouneedapaddedsectionwithinapanel.
Thisissometextwithinapanelbody.
Showcode
JSX
importReactfrom'react';
import{MDBCard,MDBCardBody,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
Thisissometextwithinapanelbody.
);
};
exportdefaultPanelPage;
Titles,textandlinks
Paneltitlesarecreatedbyusingcomponent,whiletheirsizecanbe
adjustedbyusingatagpropwithappropriatevalue.Subtitlesareusedby
addinga
subproptoCardTitletogetherwith,forexample,tag="h5".Allof
themgetalignednicelywithinthe.
Paneltitle
Panelsubtitle
Somequickexampletexttobuildonthepaneltitleandmakeupthebulkofthepanel's
content.
Panellink
Anotherlink
Showcode
JSX
importReactfrom'react';
import{MDBCard,MDBCardBody,MDBCardTitle,MDBCardText,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitle
Paneltitle
Somequickexampletexttobuildonthepaneltitleandmakeup
thebulkofthepanel'scontent.{""}
Panellink
Anotherlink
);
};
exportdefaultPanelPage;
Listgroups
Createlistsofcontentinapanelwithaflushlistgroup.
Crasjustoodio
Dapibusacfacilisisin
Vestibulumateros
Showcode
JSX
importReactfrom'react';
import{MDBCard,MDBListGroup,MDBListGroupItem,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
Crasjustoodio
Dapibusacfacilisisin
Vestibulumateros
);
};
exportdefaultPanelPage;
Headerandfooter
Addanoptionalheaderand/orfooterwithinapanel.
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader,
MDBBtn,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader,
MDBBtn,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
2daysago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader,
MDBCardFooter,
MDBBtn,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Featured
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
2daysago
);
};
exportdefaultPanelPage;
Sizing
Panelsdon'tassumestartwidth,sothey’llbe100%wideunlessstated.Youcanchangethisasneededwithcustom
CSSorgridcomponents.
Usinggridcomponents
Usingthegrid,wrapcardsinandas
needed.
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBBtn,
MDBCol,
MDBRow,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
Usingutilities
Useourhandfulofavailable
sizingutilitiestoquicklyseta
panel'swidth.
Cardtitle
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Button
Cardtitle
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Button
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBBtn,
MDBCol,
MDBRow,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
UsingcustomCSS
UsecustomCSSinyourstylesheetsorasinlinestylestosetawidth.
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBContainer,
MDBBtn
}from"mdbreact";
constPanelPage=()=>{
return(
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
gosomewhere
);
};
exportdefaultPanelPage;
TextAlignment
Youcanquicklychangethetextalignmentofanypanel-initsentiretyorspecificparts-
with
our
textalignclasses.
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBBtn,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
Navigation
Addsomenavigationtoapanel'sheader(orbody)withMDBreact
tabcomponentswith
component.
Active
Link
Disabled
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditionalcontent.
Gosomewhere
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader,
MDBBtn,
MDBNav,
MDBNavItem,
MDBNavLink,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Active
Link
Disabled
Specialtitletreatment
Withsupportingtextbelowasanaturallead-intoadditional
content.
gosomewhere
);
};
exportdefaultPanelPage;
Styles
Cardsincludevariousoptionsforcustomizingtheirbackgrounds,borders,andcolor.
Backgroundandcolor
Usethecolorproptogetherwith
textandbackgroundcolorutilitiestochangethe
appearanceofapanel.Includingitautomaticallyturnsthetextcolortowhite,butthisbehavioriseasyto
overwritewiththetextColortakinginthesamevaluesascolor.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat
aante.
Showcode
JSX
importReactfrom'react';
import{MDBCard,MDBCardBody,MDBCol,MDBRow,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
);
};
exportdefaultPanelPage;
Conveyingmeaningtoassistivetechnologies
Usingcolortoaddmeaningonlyprovidesavisualindication,whichwillnotbeconveyedtousersofassistive
technologies–suchasscreenreaders.Ensurethatinformationdenotedbythecoloriseitherobvious
fromthecontentitself(e.g.thevisibletext),orisincludedthroughalternativemeans,suchasadditional
texthiddenwiththe
.sr-onlyclassName.
Border
Useborderproptochangetheborder-colorCSSpropertyofapanel.
Header
Primarycardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Secondarycardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Successcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Dangercardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Warningcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Infocardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Lightcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Header
Darkcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBListGroup,
MDBListGroupItem,
MDBCardHeader,
MDBCardFooter,
MDBRow,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Header
Primarycardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Secondarycardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Successcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Dangercardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Warningcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Infocardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Lightcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Header
Darkcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
);
};
exportdefaultPanelPage;
Mixinutilities
Youcanalsochangethebordersonthepanelheaderandfooterasneeded,andevenremove
their
background-colorwiththetransparentprop.
Header
Successcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthebulkofthecard's
content.
Footer
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader,
MDBCardFooter,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Header
Successcardtitle
Somequickexampletexttobuildonthecardtitleandmakeupthe
bulkofthecard'scontent.
Footer
);
};
exportdefaultPanelPage;
Layout
Inadditiontostylingthecontentwithinpanels,Bootstrapincludesafewoptionsforlaying
outseriesofpanels.
Groups
Usetorendercardsasasingle,attachedelementwith
equal
width
and
heightcolumns.Cardgroupsuse
display:flex;toachievetheiruniformsizing.
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
contentisalittlebitlonger.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
cardhasevenlongercontentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardGroup,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thiscontentisalittlebit
longer.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thispanelhasevenlonger
contentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
);
};
exportdefaultPanelPage;
Whenusingcardgroupswithfooters,theircontentwillautomaticallylineup.
Cardtitle
Thisisawidercardwithsupportingtextbelowasanaturallead-intoadditional
content.This
contentisalittlebitlonger.
Lastupdated3minsago
Cardtitle
Thiscardhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Cardtitle
Thisisawidercardwithsupportingtextbelowasanaturallead-intoadditional
content.This
cardhasevenlongercontentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardFooter,
MDBCardGroup,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thiscontentisalittlebit
longer.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thispanelhasevenlonger
contentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
);
};
exportdefaultPanelPage;
Decks
Needasetofequalwidthandheightpanelthataren’tattachedtooneanother?Usedecks.
Paneltitle
Thisisalongerpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
contentisalittlebitlonger.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
panelhasevenlongercontentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardGroup,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thiscontentisalittlebit
longer.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thispanelhasevenlonger
contentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
);
};
exportdefaultPanelPage;
Justlikebefore,cardfootersindeckswillautomaticallylineup.
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
contentisalittlebitlonger.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
panelhasevenlongercontentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardFooter,
MDBCardGroup,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thiscontentisalittlebit
longer.
Lastupdated3minsago
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thispanelhasevenlonger
contentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
);
};
exportdefaultPanelPage;
Columns
Panelscanbeorganizedinto
Masonry-likecolumnswithjustCSS
by
usingthecolumnproponCardGroup.PanelsarebuiltwithCSS
columnpropertiesinsteadofflexboxforeasieralignment.Panelsareorderedfromtoptobottom
and
lefttoright.
Paneltitlethatwrapstoanewline
Thisisalongerpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
contentisalittlebitlonger.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerataante.
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerat.
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-intoadditionalcontent.
Lastupdated3minsago
Loremipsumdolorsitamet,consecteturadipiscingelit.Integerposuereerataante.
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanaturallead-intoadditional
content.This
panelhasevenlongercontentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
Showcode
JSX
importReactfrom'react';
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardGroup,
MDBContainer
}from"mdbreact";
constPanelPage=()=>{
return(
Paneltitlethatwrapstoanewline
Thisisalongerpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thiscontentisalittlebit
longer.
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Someonefamousin{""}
SourceTitle
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerat.
Someonefamousin{""}
SourceTitle
Paneltitle
Thispanelhassupportingtextbelowasanaturallead-into
additionalcontent.
Lastupdated3minsago
Loremipsumdolorsitamet,consecteturadipiscingelit.Integer
posuereerataante.
Someonefamousin{""}
SourceTitle
Paneltitle
Thisisawiderpanelwithsupportingtextbelowasanatural
lead-intoadditionalcontent.Thispanelhasevenlonger
contentthanthefirsttoshowthatequalheightaction.
Lastupdated3minsago
);
};
exportdefaultPanelPage;
Jumbotron
Alightweight,flexiblecomponentthatcanoptionallyextendtheentireviewporttoshowcase
keymarketingmessages
onyoursite.
Hello,world!
Thisisasimpleherounit,asimplejumbotron-stylecomponentforcallingextraattentionto
featuredcontent
orinformation.
Itusesutilityclassesfortypographyandspacingtospacecontentoutwithinthelargercontainer.
Learnmore
Showcode
JSX
importReactfrom'react';
import{MDBBtn,MDBJumbotron,MDBContainer}from"mdbreact";
constPanelPage=()=>{
return(
Hello,world!
Thisisasimpleherounit,asimplejumbotron-stylecomponentfor
callingextraattentiontofeaturedcontentorinformation.
ItusesutilityclassNameesfortypographyandspacingtospace
contentoutwithinthelargerMDBContainer.
Learnmore
);
};
exportdefaultPanelPage;
Introduction
Basicexample
Contenttypes
Headerandfooter
Sizing
Textalignment
Navigation
Styles
Layout
Jumbotron
ReactPanels
-API
InthissectionyouwillfindadvancedinformationaboutthePanelscomponent.Youwilllearnwhichmodulesare
requiredinthiscomponent,whatarethepossibilitiesofconfiguringthecomponent,andwhateventsand
methodsyoucanuseinworkingwithit.
Importstatement
PanelsarevariationofCards,somakesureyouhaveimportedpropermodulesfirst.
Showcode
javascript
import{
MDBCard,
MDBCardBody,
MDBCardTitle,
MDBCardText,
MDBCardHeader
}from"mdbreact";
APIReference:CardProperties
ThetablebelowshowstheconfigurationoptionsoftheMDBCardcomponent.
Name
Type
Default
Description
Example
border
String
Setsbordercolor
cascade
Boolean
false
SwitchestheCardtocascadestylemode
className
String
Addscustomclasses
collection
Boolean
false
SwitchesonstylesforcollectionCard
ecommerce
Boolean
false
SwitchesonstylesforecommerceCard
narrow
Boolean
false
MakescascadingCardcontentbodywiderthanheader
news
Boolean
false
SwitchesonstylesfornewsCard
personal
Boolean
false
SwitchesonstylesforpersonalCard
pricing
Boolean
false
SwitchesonstylesforpricingCard
reverse
Boolean
false
MakesCardheaderwiderandplacescontentbodyontheheader
tag
String
div
ChangesthedefaulthtmltagforCardcomponent
testimonial
Boolean
false
SwitchesonstylesfortestimonialCard
wide
Boolean
false
MakescascadingCardheaderwiderthancontentbody
APIReference:CardBodyProperties
ThetablebelowshowstheconfigurationoptionsoftheMDBCardBodycomponent.
Name
Type
Default
Description
Example
cascade
Boolean
false
SwitchestheCardBodytocascadestylemode
className
String
Addscustomclasses
tag
String
div
ChangesthedefaulthtmltagforCardBodycomponent
APIReference:CardTitleProperties
ThetablebelowshowstheconfigurationoptionsoftheMDBCardTitlecomponent.
Name
Type
Default
Description
Example
className
String
Addscustomclasses
sub
Boolean
false
Stylestitleassubtitle
tag
String
img
Changesthedefaulthtmltagforcomponent
APIReference:CardTextProperties
ThetablebelowshowstheconfigurationoptionsoftheMDBCardTextcomponent.
Name
Type
Default
Description
Example
className
String
Addscustomclasses
muted
Boolean
false
Mutesthetextcolor
small
Boolean
false
Useshtmlsmallascomponent'stag
tag
String
img
Changesthedefaulthtmltagforcomponent
Introduction
Import
APIReference
APIReference:Card
APIReference:CardBody
APIReference:CardTitle
APIReference:CardText
×
Accessrestricted
ToviewthissectionyoumusthaveanactiveMDBProaccount
Logintoyouraccountor
purchaseanMDBProsubscriptionifyouareanewuser
Login
BuyMDBPro
Close