Skip to content

Instantly share code, notes, and snippets.

@EddyHaigh
Created June 16, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EddyHaigh/639a2b28d542a7e416bd484e7187867a to your computer and use it in GitHub Desktop.
Save EddyHaigh/639a2b28d542a7e416bd484e7187867a to your computer and use it in GitHub Desktop.
<FluentDialog aria-label="Dialog" Modal="true" hidden="@(!ShowDialog)">
<div>
<FluentButton Appearance="Appearance.Neutral" @onclick="() => ShowDialog = false">ToggleDialog</FluentButton>
</div>
</FluentDialog>
<FluentButton Appearance="Appearance.Neutral" @onclick="() => ShowDialog = true">Toggle Dialog</FluentButton>
@code {
public bool ShowDialog { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment