Name |
Type |
Default value |
Description |
---|
AutoDismiss |
bool |
true |
Whether or not to dismiss itself automatically. |
AutoDismissTime |
TimeSpan |
TimeSpan.FromSeconds(3) |
How long the SnackBar will automatically dismiss (default is 3 seconds). |
BodyTemplate |
RenderFragment<string>? |
null |
Used to customize how content inside the Body is rendered. |
Classes |
BitSnackBarClassStyles? |
null |
Custom CSS classes for different parts of the BitSnackBar. |
DismissIconName |
string? |
null |
Dismiss Icon in SnackBar. |
OnDismiss |
EventCallback |
|
Callback for when the Dismissed. |
Position |
BitSnackBarPosition |
BitSnackBarPosition.BottomRight |
The position of SnackBar to show. |
Styles |
BitSnackBarClassStyles? |
null |
Custom CSS styles for different parts of the BitSnackBar. |
TitleTemplate |
RenderFragment<string>? |
null |
Used to customize how content inside the Title is rendered. |
Name |
Type |
Default value |
Description |
---|
AriaLabel |
string? |
null |
The aria-label of the control for the benefit of screen readers. |
Class |
string? |
null |
Custom CSS class for the root element of the component. |
Dir |
BitDir? |
null |
Determines the component direction. |
HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional attributes in addition to the component's parameters. |
Id |
string? |
null |
Custom id attribute for the root element. if null the UniqueId will be used instead. |
IsEnabled |
bool |
true |
Whether or not the component is enabled. |
Style |
string? |
null |
Custom CSS style for the root element of the component. |
Visibility |
BitVisibility |
BitVisibility.Visible |
Whether the component is visible, hidden or collapsed. |