RayCraftDocs
v1.0.3 raycraft.dev
On this page

Drawer

Free

Side panel. Temporary drawers float over the page with a backdrop, close with Escape and move focus into the panel; set Temporary=false for a permanent sidebar. With Mini the closed drawer stays as a narrow rail of icons (give NavItems a Tooltip) and opening it shows icons with text.

Example

Drawer control

Parameters

ParameterTypeDescription
AnchorDrawerAnchorLeft (default) or Right.
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
CollapsibleboolAdds a button that shows or hides the body.
MiniboolKeeps a narrow icon-only rail when the drawer is closed; opening shows icons with text.
OpenboolWhether the drawer is shown. Use with @bind-Open.
StylestringInline style added to the root element.
TemporaryboolFloats above the page with a backdrop (default true).
TitlestringTitle text (drawer header, tab caption, column header, step caption).

Events

EventTypeDescription
OpenChangedEventCallback<bool>Raised when the drawer asks to close.

Package

Drawer is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.