MudChip API

Pages
Properties
Name Type Default Description
Behavior
ChildContent
RenderFragment
null Child content of component.
Default
bool?
null If true, this chip is selected by default if used in a ChipSet.
Disabled
bool
False If true, the chip will be displayed in disabled state and no events possible.
Icon
string
null Sets the Icon to use.
Text
string
null A string you want to associate with the chip. If the ChildContent is not set this will be shown as chip text.
Value
object
A value that should be managed in the SelectedValues collection. Note: do not change the value during the chip's lifetime
Click action
ForceLoad
bool
False If true, force browser to redirect outside component router-space.
Href
string
null If set to a URL, clicking the button will open the referenced document. Use Target to specify where
Target
string
null The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename
Appearance
AvatarContent
RenderFragment
null
CheckedIcon
string
Custom checked icon.
CloseIcon
string
null Overrides the default close icon, only shown if OnClose is set.
Color
Color
Color.Default The color of the component.
DisableRipple
bool
False If true, disables ripple effect, ripple effect is only applied to clickable chips.
IconColor
Color
Color.Inherit The color of the icon.
Label
bool
False Removes circle edges and applies theme default.
SelectedColor
Color
Color.Inherit The selected color to use when selected, only works together with ChipSet, Color.Inherit for default value.
Size
Size
Size.Medium The size of the button. small is equivalent to the dense button styling.
Variant
Variant
Variant.Filled 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
OnClick EventCallback<MouseEventArgs> Chip click event, if set the chip focus, hover and click effects are applied.
OnClose EventCallback<MudChip> Chip delete event, if set the delete icon will be visible.
Methods
Name Parameters Return Description
ValueTask DisposeAsync()
ValueTask

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.3

An unhandled error has occurred. Reload 🗙