@inherits LayoutComponentBase
@using Blazored.Toast
@Body
@code {
private bool isShelfExpanded { get; set; } = false;
private void OnShelfStateChanged(bool newState)
{
isShelfExpanded = newState;
// This forces Blazor to re-evaluate the DOM, instantly applying
// the "shelf-open" and "shifted-canvas" CSS utility classes.
StateHasChanged();
}
}