@namespace BootstrapBlazor.Components
@inherits BootstrapComponentBase

<Modal @ref="_modal" IsBackdrop="_isBackdrop" IsKeyboard="@_isKeyboard" IsFade="@_isFade"
       OnShownAsync="@_onShownAsync" OnCloseAsync="@_onCloseAsync" class="@ClassString">
    @for (var index = 0; index < DialogParameters.Keys.Count; index++)
    {
        if (index != 0 && index == DialogParameters.Keys.Count - 1)
        {
            <div class="modal-backdrop fade show"></div>
        }

        @RenderDialog(index, DialogParameters.Keys.ElementAt(index))
    }
</Modal>
