MudDrawer API

Pages
Properties
Name Type Default Description
Behavior
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
DisableOverlay
bool
False Show overlay for responsive and temporary drawers.
Fixed
bool
True If true, drawer position will be fixed. (CSS position: fixed;)
Open
bool
False Sets the opened state on the drawer. Can be used with two-way binding to close itself on navigation.
OpenMiniOnHover
bool
False Open drawer automatically on mouse enter when MudDrawer.Variant parameter is set to DrawerVariant.Mini.
PreserveOpenState
bool
False Preserve open state for responsive drawer when window resized above MudDrawer.Breakpoint.
Variant
DrawerVariant
DrawerVariant.Responsive Variant of the drawer. It specifies how the drawer will be displayed.
Appearance
Color
Color
Color.Default The color of the component. It supports the theme colors.
Elevation
int
1 The higher the number, the heavier the drop-shadow. 0 for no shadow.
Height
string
null Height of top/bottom temporary drawer
MiniWidth
string
null Width of left/right drawer. Only for non-fixed drawers.
Width
string
null Width of left/right drawer. Only for non-fixed drawers.
Common
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<bool>
Methods
Name Parameters Return Description
Dispose()
Dispose(bool disposing)
bool disposing
OnMouseEnter()
OnMouseLeave()
Task OnNavigation()
Task
An unhandled error has occurred. Reload 🗙