Custom Rendering

The Drawer enables you to customize the content of its items.

To customize the appearance of the items, use the item property of the Drawer.

The following example demonstrates how to customize the look and feel of the drawer items.

Items

Example
View Source
Edit In Stackblitz  
Change Theme:

Hierarchical Drawer

The Drawer component works with a flat structure of items by design. However many real world scenarios require a navigation with hierarchical structure.

The following example demonstrates how to achieve this by toggling the visibility of the Drawer items depending on the currently selected item.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?