MudBlazor

MudToggleIconButton API

Properties

Name Type Default Description
Color
Color

Color.Default

The color of the icon in the untoggled state. It supports the theme colors.
Disabled
Boolean

False

If true, the button will be disabled.
DisableRipple
Boolean

False

If true, disables ripple effect.
Edge
Edge

Edge.False

If set uses a negative margin.
Icon
String

null

The Icon that will be used in the untoggled state.
Size
Size

Size.Medium

The Size of the component in the untoggled state.
Title
String

null

Title of the icon used for accessibility.
Toggled
Boolean

False

The toggled value.
ToggledColor
Color

Color.Default

The color of the icon in the toggled state. It supports the theme colors.
ToggledIcon
String

null

The Icon that will be used in the toggled state.
ToggledSize
Size

Size.Medium

The Size of the component in the toggled state.
ToggledTitle
String

null

Title used in toggled state, if different.
Variant
Variant

Variant.Text

The variant to use.
Inherited from MudComponentBase
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<Boolean>
Fires whenever toggled is changed.

Methods

Name Parameters Return Description
Task Toggle()
Task
An error has occurred. This application may no longer respond until reloaded. Reload 🗙