• 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

Sidebar


Full Description

  • CSidebar

# Sidebar API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
fixedbooleantrue
set fixed type of sidebar
unfoldableboolean
set unfoldable type of sidebar
overlaidboolean
set overlaid type of sidebar
breakpoint(false | | sm | md | lg | xl)lg
set sidebar breakpoint
minimizeboolean
show minimize verson of sidebar
show(true | false | responsive)responsive
show/hide the sidebar
size(sm | lg | xl)
set the size of sidebar
hideOnMobileClickbooleantrue
determine the hide effect on mobile
asideboolean
set the type to aside
colorSchemestringdark
color scheme
dropdownMode(openActive | close | closeInactive | noAction)
set dropdown effect
onShowChangeFunction
on show state change callback
onMinimizeChangeFunction
on minimize change callback



SidebarBrand


Render CBrand version for sidebar component.



SidebarClose


Render CButtonClose version for sidebar component.



SidebarFooter


# SidebarFooter API

NameRequiredTypeDefault Value
tag(Function | string)div
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarForm


# SidebarForm API

NameRequiredTypeDefault Value
tag(Function | string)div
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarHeader


# SidebarHeader API

NameRequiredTypeDefault Value
tag(Function | string)div
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarMinimizer


# SidebarMinimizer API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarNav


# SidebarNav API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
childrenany
children components
innerRef(object | Function | string)
ref to the main tag



SidebarNavDropdown


# SidebarNavDropdown API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
childrenany
children components
innerRef(object | Function | string)
ref to the main tag
namestring
icon(object | string)
fontIconstring
showboolean
routestring



SidebarNavTitle


# SidebarNavTitle API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarNavDivider


# SidebarNavDivider API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



SidebarNavItem


# SidebarNavItem API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(Function | string | object)
ref to the main tag
icon(string | object)
use if you want to add icon as CIcon component; available options: - string - if you need to pass only CIcon 'name' prop, - object - if you want to pass more of CIcon props/ attributes
fontIconstring
use if you want to add css font icon; value of prop are css classes of the icon
badgeobject
if set badge will be displayed on the right side of the link; keys in object are CBadge component props, content of the badge is defined by additional 'text' key
addLinkClassstring
add classes to link element
labelboolean
sets link to label style
namestring
sets text of the item
colorstring
background color

  • Components
    • Usage
      • Features
      • API
    • Related
      • CSidebar
      • CSidebarBrand
      • CSidebarClose
      • CSidebarFooter
      • CSidebarForm
      • CSidebarHeader
      • CSidebarMinimizer
      • CSidebarNav
      • CSidebarNavDropdown
      • CSidebarNavTitle
      • CSidebarNavDivider
      • CSidebarNavItem
CoreUI © 2020 creativeLabs.core-logo