• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Grid Components

Grid components.




Container


Usage

Example

col-lg-5
col-md-4
col-sm-3

Script


  return (
    <CContainer>
      <CRow>
        <CCol lg="5" className="bg-success py-3">
          col-lg-5
        </CCol>
        <CCol md="4" className="bg-warning py-3">
          col-md-4
        </CCol>
        <CCol sm="3" className="bg-danger py-3">
          col-sm-3
        </CCol>
      </CRow>
    </CContainer>
  )
  


# Container API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
fluidboolean
set fluid type



Row


# Row API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
guttersbooleantrue
render gutters
formboolean
render form-row
alignHorizontalstring
set justify-content-* class
alignVerticalstring
set align-* class



Col


# Col API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
widthsany[]["xs","sm","md","lg","xl"]
set of available widths

  • Components
    • Usage
      • Features
      • API
    • Related
      • -Grid
      • CContainer
      • CRow
      • CCol
CoreUI © 2020 creativeLabs.core-logo