Allow UI to delete sessions
This commit is contained in:
12
Shogi.UI/Shared/IconButton.razor
Normal file
12
Shogi.UI/Shared/IconButton.razor
Normal file
@@ -0,0 +1,12 @@
|
||||
<button @onclick="OnClick" style="@style">
|
||||
@ChildContent
|
||||
</button>
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public RenderFragment ChildContent { get; set; } = default!;
|
||||
[Parameter][EditorRequired] public EventCallback OnClick { get; set; }
|
||||
[Parameter] public string CssWidth { get; set; } = "32px";
|
||||
[Parameter] public string CssHeight { get; set; } = "32px";
|
||||
|
||||
private string style => $"width: {CssWidth}; height: {CssHeight};";
|
||||
}
|
||||
Reference in New Issue
Block a user