The Blazor Sidebar is an expandable and collapsible component that typically acts as a side container in which to place primary or secondary content alongside the main content. It provides flexible options that can be shown or hidden based on user interactions. Any type of HTML content or component can be placed in the Blazor Sidebar control for quick access and for easy navigation, like quick references, menus, lists, and tree views.
Different types of slide-out content in the Blazor Sidebar component give users the flexibility to view or hide content over or above the main content by pushing, sliding, or overlaying it.
The Blazor Sidebar component positions its content to the left or right side of the main content area. This allows the placement of two sidebars in a page, both at the left and right, to show primary and secondary content simultaneously.
When you dock the side content to give the main content more space, the navigation text is represented as a shortened view of icons.
Bind custom actions to any element (hamburger menu or buttons) to toggle a sidebar.
Auto closing the Blazor Sidebar component’s content allows the main content area to be more readable.
The Blazor Sidebar component’s responsive mode gives an adaptive, redesigned UI appearance for mobile devices.
Developers have control over all the UI elements and behaviors of the components to provide the best experience to end users with a rich set of developer-friendly APIs.
Sidebar is also available in JavaScript, Angular, React and Vue frameworks that are built from their own TypeScript libraries. Check out the different Sidebar platforms from the links below,
Easily get started with the Blazor Sidebar using a few simple lines of C# code example as demonstrated below. Also explore our Blazor Sidebar Example that shows you how to render and configure the Blazor Sidebar.
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Navigations
<div id="header" style="height:45px;text-align: center;color:white;background-color:midnightblue;font-size:1.2rem;line-height:45px;">
Header
</div>
<SfSidebar Width="250px">
<ChildContent>
<div style="text-align: center;" class="text-content"> Sidebar </div>
</ChildContent>
</SfSidebar>
</div>
<div class="text-content" style="text-align: center;">Main content</div>
<style>
.e-sidebar {
background-color: #f8f8f8;
color: black;
}
.text-content {
font-size: 1.5rem;
padding: 3rem;
}
.main > div {
padding: 0px !important;
}
</style>
Syncfusion Blazor Sidebar provides the following features:
You can find our Blazor Sidebar demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.