Blazorise Collapse API

Explore the Blazorise Collapse API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Collapse documentation.

API

Parameters

Collapse

ParameterDefaultType
Animatedtruebool

Enables the transitions supplied by the CSS provider. Set to false for immediate changes.
AnimationDurationnullint?

Overrides the provider's animation duration, in milliseconds. Null preserves the provider's default. Zero or a negative value disables transitions.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this Collapse.
Visiblefalsebool

Specifies the collapse visibility state.

CollapseHeader

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this CollapseHeader.

CollapseBody

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this CollapseBody.

Events

Collapse

EventType
VisibleChangedEventCallback<bool>

Notifies when the collapse visibility state changes.

CollapseHeader

EventType
ClickedEventCallback<MouseEventArgs>

Notifies when the header is clicked.

Methods

Collapse

MethodReturnParameters
ToggleTask—

Toggles the collapse visibility state.