MudBlazor

MudScrollToTop API

Properties

Name Type Default Description
ChildContent
RenderFragment

null

HiddenCssClass
String

null

CSS class for the Hidden state. Here, apply some transitions and animations that will happen when the component becomes invisible
ScrollBehavior
ScrollBehavior

ScrollBehavior.Smooth

Smooth or Auto
Selector
String

null

The CSS selector to which the scroll event will be attached
TopOffset
Int32

300

The distance in pixels scrolled from the top of the selected element from which the component becomes visible
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
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
OnScroll
EventCallback<ScrollEventArgs>
Called when scroll event is fired

Methods

Name Parameters Return Description
Dispose() Remove the event
An error has occurred. This application may no longer respond until reloaded. Reload 🗙