MudScrollToTop

API documentation.

Check out the Examples for this component.

Properties

Name Type Default Description
ChildContent RenderFragment null
Selector String null The CSS selector to which the scroll event will be attached
Visible Boolean False If set to true, it starts Visible. If sets to false, it will become visible when the TopOffset amount of scrolled pixels is reached
VisibleCssClass String null CSS class for the Visible state. Here, apply some transitions and animations that will happen when the component becomes visible
HiddenCssClass String null CSS class for the Hidden state. Here, apply some transitions and animations that will happen when the component becomes invisible
TopOffset Int32 300 The distance in pixels scrolled from the top of the selected element from which the component becomes visible
ScrollBehavior ScrollBehavior ScrollBehavior.Smooth Smooth or Auto
OnScroll EventCallback<ScrollEventArgs> Called when scroll event is fired
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 🗙