The Drawer component is a dismissible or permanently visible panel for navigating in WebAssembly (WASM) and Server-side Blazor apps applications. It allows switching the content of different sections of the page and comes with multiple configuration options for setting its display mode, position, customization via templates, built-in keyboard support.
The Drawer component comes with two options for displaying its content: Overlay in which the Drawer expands on top of the container content and displays a grayed overlay over it; Push- the Drawer expands side by side to the container content by shrinking its width.
When the Drawer is in a collapsed state, you can enable its “mini mode” or “mini view” which means that when the Drawer is minimized, it will elegantly display only the item icon.
Depending on the Blazor app requirements you may need to position the Drawer left or right in relation to the page content
The Drawer component templates allow full customization of its appearance. Using the Drawer item template, you can control the rendering of each individual list item, and with the Drawer full template you can choose what the Drawer renders on your own without a data source the component uses. The full Template will let you add login components, user profile picture, and any other content and functionality you need - from headers/footers to hierarchical structures for navigation (such as a TreeView).
The Drawer component exposes SelecteditemChanged and ExpandedChanged events to let you handle user interactions and component state changes:
The Drawer component has built-in keyboard navigation allowing end users to easily navigate, focus and click on Drawer items using their keyboard.
The Telerik Blazor Drawer component has several built-in themes such as Default (our own styling), Material (based on the Material Design guidelines), Bootstrap (which looks like the Bootstrap styling to integrate better) and Fluent (based on Microsoft Fluent UI). You can easily customize any of out-of-the-box themes with a few lines of CSS, or create new theme to match your colors and branding by using the Telerik SASS ThemeBuilder application.
The Telerik UI for Blazor Drawer component supports right-to-left configuration. The RTL functionality is supported by most of our components to accommodate users who communicate in a right-to-left language script, such as Arabic and Hebrew.
Learn more in our Blazor Right-to-Left Support documentation