React Sidebar Component API
Sidebar API
Explore the API reference for the React Sidebar component and discover how to effectively utilize its props for customization.
On this page
import { CSidebar } from '@coreui/react-pro'
| Property | Default | Type |
|---|
Component used for the root node. Either a string to use a HTML element or a component. |
A string of all className you want applied to the component. |
Sets if the color of text should be colored for a light or dark dark background. |
Make sidebar narrow. |
Callback fired when the component requests to be hidden. |
Callback fired when the component requests to be shown. |
Event emitted after visibility of component changed. |
Set sidebar to overlaid variant. |
Components placement, there’s no default placement. |
Place sidebar in non-static positions. |
Size the component small, large, or extra large. |
Expand narrowed sidebar on hover. |
Toggle the visibility of sidebar component. |
import { CSidebarBrand } from '@coreui/react-pro'
| Property | Default | Type |
|---|
| as5.0.0+ | a | (ElementType & 'symbol'), (ElementType & 'object'), (ElementType & 'a'), (ElementType & 'slot'), (ElementType & 'style'), ... 175 more ..., undefined |
Component used for the root node. Either a string to use a HTML element or a component. |
| className | - | string, undefined |
A string of all className you want applied to the component. |
import { CSidebarFooter } from '@coreui/react-pro'
| Property | Default | Type |
|---|
A string of all className you want applied to the component. |
import { CSidebarHeader } from '@coreui/react-pro'
| Property | Default | Type |
|---|
A string of all className you want applied to the component. |
import { CSidebarNav } from '@coreui/react-pro'
| Property | Default | Type |
|---|
Component used for the root node. Either a string to use a HTML element or a component. |
A string of all className you want applied to the component. |
Make navigation more compact by cutting link padding in half. |
Sets the navigation variant. |
import { CSidebarToggler } from '@coreui/react-pro'
| Property | Default | Type |
|---|
A string of all className you want applied to the component. |