SideBar
The SideBar is a panel used for interactions directly related to the main content, such as filtering and sorting a list of items.
Assign data-ts="SideBar"
to an aside
to initialize as a SideBar. The SideBar must be created with a child Panel
.
Also note tht the SideBar must be positioned before or after the Main
element:
Toggle the SideBar
In mobile breakpoint, the SideBar is hidden and must be toggled forth manually. If you resize to mobile view, you can try it with this button.
You can toggle the SideBar like you would toggle an Aside.
Bonus panels
You can put a Footer
next to the Panel
. The Footer will stick to the bottom of the SideBar.
If you want this to be visible in mobile only, as the current designs suggest, you can assign it the classname ts-show-mobile-only
.
Nesting Asides
You can make subsidebars by nesting Aside components in the ts-sidebar
. The Aside can be opened and closed like a normal Aside.
Custom toolbar buttons
The SideBar header works like a Toolbar. You can add buttons with an API, so we'll add a button to toggle that Aside we talked about.
This API is likely to change!