ant-design-blazor/components/dropdown/internal/DropdownGroupButton.razor

25 lines
587 B
C#
Raw Normal View History

@namespace AntDesign.Internal
@inherits AntDomComponentBase
<ButtonGroup Class="ant-dropdown-button" Style="@(Dropdown.Block ? $"display:flex; flex-direction:row;{Style}": Style)">
@if (Dropdown.ButtonsRender != null)
{
@Dropdown.ButtonsRender(LeftButton, RightButton)
}
else
{
@LeftButton
@RightButton
}
</ButtonGroup>
@code {
[CascadingParameter]
public Dropdown Dropdown { get; set; }
[Parameter]
public RenderFragment LeftButton { get; set; }
[Parameter]
public RenderFragment RightButton { get; set; }
}