MudList

API documentation.

Check out the Examples for this component.

Properties

Name Type Default Description
ChildContent RenderFragment null Child content of component.
Clickable Boolean False Set true to make the list items clickable. This is also the precondition for list selection to work.
DisablePadding Boolean False If true, vertical padding will be removed from the list.
Dense Boolean False If true, compact vertical padding will be applied to all list items.
DisableGutters Boolean False If true, the left and right padding is removed on all list items.
Disabled Boolean False If true, will disable the list item if it has onclick.
SelectedItem MudListItem null The current selected list item. Bind this with a two-way binding to activate the lists exclusive selection behavior. Note: make the list Clickable for item selection to work.
SelectedItemChanged EventCallback<MudListItem> Called whenever the selection changed
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.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙