MudBlazor

MudDrawer API

Pages

Properties

Name Type Default Description
Anchor
Anchor

Anchor.Start

Side from which the drawer will appear.
Breakpoint
Breakpoint

Breakpoint.Md

Switching point for responsive drawers
ChildContent
RenderFragment

null

Child content of component.
ClipMode
DrawerClipMode

DrawerClipMode.Never

Specify how the drawer should behave inside a MudLayout. It affects the position relative to MudAppbar
Color
Color

Color.Default

The color of the component. It supports the theme colors.
DisableOverlay
Boolean

False

Show overlay for responsive and temporary drawers.
Elevation
Int32

1

The higher the number, the heavier the drop-shadow. 0 for no shadow.
Fixed
Boolean

True

If true, drawer position will be fixed. (CSS position: fixed;)
Height
String

null

Height of top/bottom temporary drawer
MiniWidth
String

null

Width of left/right drawer. Only for non-fixed drawers.
Open
Boolean

False

Sets the opened state on the drawer. Can be used with two-way binding to close itself on navigation.
OpenMiniOnHover
Boolean

False

Open drawer automatically on mouse enter when parameter is set to .
PreserveOpenState
Boolean

False

Preserve open state for responsive drawer when window resized above .
Variant
DrawerVariant

DrawerVariant.Responsive

Variant of the drawer. It specifies how the drawer will be displayed.
Width
String

null

Width of left/right drawer. Only for non-fixed drawers.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
OpenChanged
EventCallback<Boolean>

Methods

Name Parameters Return Description
Dispose()
Dispose(bool disposing)
bool disposing
OnMouseEnter()
OnMouseLeave()
Task OnNavigation()
Task
An error has occurred. This application may no longer respond until reloaded. Reload 🗙