RayCraftDocs
v1.0.3 raycraft.dev
On this page

BreakpointObserver

Free

Tells your code which named breakpoint (Xs to Xxl) the window is in and re-renders when it changes. Use CSS classes when styling is enough; use this when the markup itself must differ.

Example

BreakpointObserver control

Parameters

ParameterTypeDescription
ChildContentRenderFragment<Breakpoint>Content that receives the current breakpoint as context.
CurrentBreakpointThe current breakpoint. Use with @bind-Current.

Events

EventTypeDescription
CurrentChangedEventCallback<Breakpoint>Raised when the window crosses a breakpoint.

Package

BreakpointObserver is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.