Skip to content

Commit f35d6c6

Browse files
committed
Class into Alert
1 parent f94df86 commit f35d6c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Alert/Alert.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@if (Visible)
22
{
3-
<div class="alert [email protected] [email protected] alert-dismissible" role="alert" @attributes="AdditionalAttributes">
3+
<div class="alert [email protected] [email protected] alert-dismissible @Class" role="alert" @attributes="AdditionalAttributes">
44
<div class="d-flex align-items-center">
55
@if (ShowCloseButton)
66
{
@@ -18,6 +18,7 @@
1818
[Parameter] public Color BackgroundColor { get; set; } = Color.Primary;
1919
[Parameter] public Color TextColor { get; set; } = Color.White;
2020
[Parameter] public string? Icon { get; set; }
21+
[Parameter] public string? Class { get; set; }
2122
[Parameter(CaptureUnmatchedValues = true)]
2223
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
23-
}
24+
}

0 commit comments

Comments
 (0)