Sidebar
The Sidebar is a vertical component usually placed at the side of the page, providing additional navigation or content options. It can house menus, links, tools, or other widgets. Sidebars are customizable in terms of width, style, and position, and are essential for improving navigation and maximizing the use of screen space, especially in complex applications or websites with extensive content.
Examples
Various examples showcasing different configurations of the component
Property
Value
Top
{"type":"div","key":null,"ref":null,"props":{"style":{"width":"100%","height":50,"background":"#F5F5F5"}},"_owner":null}
Bottom
{"type":"div","key":null,"ref":null,"props":{"style":{"width":"100%","height":50,"background":"#F5F5F5"}},"_owner":null}
Items
[{"label":"Item 1","value":"item1","prefixIcon":"Search"},{"label":"Item 2","value":"item2","prefixIcon":"Home"},{"label":"Item 3","value":"item3","prefixIcon":"AccountCircle"}]
Properties
Each component can be customized and configured based on product requirements. You can modify the component on Canonic by clicking on the component and opening the configuration panel.
Property
Description
Default Value
Type
Elevation
The elevation level of the container.
1
String
BG Color
The background color of the container.
#FFFFFF
Color
Size
Size of the submenu.
Large
String
Items
The items to be displayed in the sidebar.
Array
Triggers
Components expose certain events such as clicking. You can use these events to perform actions such as navigation, fetching data and controlling other components. The events exposed by this component are listed below.
Property
Description
On click
Triggered when the card is clicked.
On double click
Triggered when the card is double clicked.
Did you find what you were looking for?
👍
👎
What went wrong?
Need more help?We have a thriving Discordcommunity that can help you with all things Canonic. →