Skip to content
daisyBlazor

Spacer

An empty flex-grow element that pushes its siblings apart inside a row. Use it in toolbars and headers; drops in for MudSpacer.
Cover · <Spacer>

File storage

Pro plan

2 GB used
5 GB

Examples

Toolbar

One Spacer pushes the actions to the far end of the row.

Q4 roadmap
website/Examples/Layout/SpacerToolbarExample.razor Source

Centring

Two Spacers share the free space, centring whatever sits between them.

Settings
website/Examples/Layout/SpacerCenterExample.razor Source

API

<Spacer>

DaisyBlazor

Parameters

  • Class string
    = null

    Additional CSS classes merged onto the flex-1 filler.

  • Style string
    = null

    Inline styles applied to the filler element.

From MudSpacer

Spacer keeps MudSpacer's parameter names, so most markup moves over by dropping the Mud prefix. See the migration guide for the shared enums, icons and services.

<MudSpacer> <Spacer>
Something went wrong while running the docs. Reload