You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Dialog/Dialog.razor

23 lines
495 B

2 years ago
@namespace Connected.Components
@inherits UIComponent
@*this makes dialog inlineable, it will only render inside a DialogInstance*@
@if (!IsInline)
{
<FocusTrap DefaultFocus="DefaultFocus">
<div @attributes="UserAttributes" class="@ContentClass" style="@ContentStyle">
@DialogContent
</div>
@if (DialogActions != null)
{
<div class="@ActionClass">
@DialogActions
</div>
}
</FocusTrap>
}