@page "/"
@page "/MatDrawerFrame"
<header>
<MatAppBarContainer>
<MatAppBar Fixed="true">
<MatAppBarRow>
<MatAppBarSection>
<MatIconButton Icon="menu" OnClick="@((e) => ButtonClicked())"></MatIconButton>
<MatAppBarTitle>MatBlazor</MatAppBarTitle>
</MatAppBarSection>
<MatAppBarSection Align="@MatAppBarSectionAlign.End">
<MatIconButton Icon="favorite"></MatIconButton>
</MatAppBarSection>
</MatAppBarRow>
</MatAppBar>
<MatAppBarContent>
<MatDrawerContainer Style="width: 100vw; height: 100vh;" class="mat-drawer-container-responsive">
<MatDrawer bind-Opened="@Opened">
Drawer Content<br/>
<MatList>
<MatListItem>
<MatIcon>favorite</MatIcon>
<span style="padding-left: 10px;">Item 1</span>
</MatListItem>
<MatListItem>
<MatIcon>favorite</MatIcon>
<span style="padding-left: 10px;">Item 1</span>
</MatListItem>
<MatListItem>
<MatIcon>favorite</MatIcon>
<span style="padding-left: 10px;">Item 1</span>
</MatListItem>
</MatList>
</MatDrawer>
<MatDrawerContent>
<h1>Page Content</h1>
<p>MatBlazor comprises a range of components which implement common interaction patterns according to the Material Design specification.</p>
</MatDrawerContent>
</MatDrawerContainer>
</MatAppBarContent>
</MatAppBarContainer>
</header>
@functions
{
bool Opened = true;
void ButtonClicked()
{
Opened = !Opened;
}
}