Menu Appearance Settings
You can control the appearance of the Menu by setting the Size parameter.
Size
You can increase or decrease the size of the Menu items by setting the Size parameter to a member of the Telerik.Blazor.ThemeConstants.Menu.Size class. The Size parameter determines styles like padding, font-size, and line-height of the Menu links.
| Class members | Manual declarations |
|---|---|
Small | sm |
Medium default value | md |
Large | lg |
The Size parameter affects:
- The root items in both horizontal and vertical orientation.
- The child items in the Menu popups.
- The items of the ContextMenu, which also exposes a
Sizeparameter.
When you set Size to null, the Menu does not render a size CSS class. In this case, the Menu items rely only on your custom CSS styles.
Built-in Menu sizes
ThemeBuilder
To take full control over the appearance of the Telerik UI for Blazor components, you can create your own styles by using ThemeBuilder.
ThemeBuilder is a web application that enables you to create new themes and customize existing ones. Every change that you make is visualized almost instantly. Once you are done styling the UI components, you can export a ZIP file with the styles for your theme and use them in your Blazor app.