MudToggleIconButton API

Properties
Name Type Default Description
Behavior
ClickPropagation
bool
False If true, the click event bubbles up to the containing/parent component.
Disabled
bool
False If true, the button will be disabled.
Icon
string
null The Icon that will be used in the untoggled state.
Title
string
null Title of the icon used for accessibility.
Toggled
bool
False The toggled value.
ToggledIcon
string
null The Icon that will be used in the toggled state.
ToggledTitle
string
null Title used in toggled state, if different.
Appearance
Color
Color
Color.Default The color of the icon in the untoggled state. It supports the theme colors.
DisableElevation
bool
False If true, no drop-shadow will be used.
DisableRipple
bool
False If true, disables ripple effect.
Edge
Edge
Edge.False If set uses a negative margin.
Size
Size
Size.Medium The Size of the component in the untoggled state.
ToggledColor
Color
Color.Default The color of the icon in the toggled state. It supports the theme colors.
ToggledSize
Size
Size.Medium The Size of the component in the toggled state.
Variant
Variant
Variant.Text The variant to use.
Common
Class
string
null User class names, separated by space.
Style
string
null User styles, applied on top of the component's own classes and styles.
Tag
object
null Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<string, object>
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
EventCallbacks
Name Type Description
ToggledChanged EventCallback<bool> Fires whenever toggled is changed.
Methods
Name Parameters Return Description
Task Toggle()
Task

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

An error has occurred. This application may no longer respond until reloaded. Reload 🗙