about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/SimpleComponents/LinkButton.razor
blob: b800989f0639427cde904fe29a542b66e8c700da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<a href="@href" class="btn btn-primary" @onclick="@(() => OnClick?.Invoke())"
   style="background-color: @(Color ?? "#1b6ec2");">
    @ChildContent
</a>

@code {

    [Parameter]
    public string? href { get; set; }

    [Parameter]
    public RenderFragment ChildContent { get; set; }

    [Parameter]
    public string? Color { get; set; }

    [Parameter]
    public Func<Task>? OnClick { get; set; }

}