Table of Contents

Class TwBlazorSpacing

Namespace
TwBlazor.Configuration
Assembly
TwBlazor.dll

Global configuration for spacing utility classes shared by all components. Each scale is keyed by its step on Tailwind's spacing scale, so Gap[4] holds gap-4 and Padding[0.5] holds p-0.5, and every class is written out once.

[ExcludeFromCodeCoverage]
public class TwBlazorSpacing
Inheritance
TwBlazorSpacing
Inherited Members

Constructors

TwBlazorSpacing()

public TwBlazorSpacing()

Properties

Gap

Gets or sets the gap between rows and columns (gap-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale Gap { get; set; }

Property Value

TwSpacingStepScale

GapX

Gets or sets the gap between columns (gap-x-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale GapX { get; set; }

Property Value

TwSpacingStepScale

GapY

Gets or sets the gap between rows (gap-y-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale GapY { get; set; }

Property Value

TwSpacingStepScale

InteractiveRowPadding

Gets or sets the padding preset used for interactive list/menu rows.

public string InteractiveRowPadding { get; set; }

Property Value

string

Margin

Gets or sets the margin on every side (m-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale Margin { get; set; }

Property Value

TwSpacingStepScale

MarginBottom

Gets or sets the margin on the bottom (mb-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale MarginBottom { get; set; }

Property Value

TwSpacingStepScale

MarginEnd

Gets or sets the margin on the end (me-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale MarginEnd { get; set; }

Property Value

TwSpacingStepScale

MarginStart

Gets or sets the margin on the start (ms-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale MarginStart { get; set; }

Property Value

TwSpacingStepScale

MarginTop

Gets or sets the margin on the top (mt-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale MarginTop { get; set; }

Property Value

TwSpacingStepScale

Padding

Gets or sets the padding on every side (p-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale Padding { get; set; }

Property Value

TwSpacingStepScale

PaddingBottom

Gets or sets the padding on the bottom (pb-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale PaddingBottom { get; set; }

Property Value

TwSpacingStepScale

PaddingStart

Gets or sets the padding on the start, for example to clear a leading icon (ps-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale PaddingStart { get; set; }

Property Value

TwSpacingStepScale

PaddingTop

Gets or sets the padding on the top (pt-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale PaddingTop { get; set; }

Property Value

TwSpacingStepScale

PaddingX

Gets or sets the padding on the start and end (px-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale PaddingX { get; set; }

Property Value

TwSpacingStepScale

PaddingY

Gets or sets the padding on the top and bottom (py-*), keyed by step. See TwSpacingStepScale.

public TwSpacingStepScale PaddingY { get; set; }

Property Value

TwSpacingStepScale

PushBottom

Gets or sets the "mt-auto" class used to push an element to the bottom of its flex column.

public string PushBottom { get; set; }

Property Value

string

PushEnd

Gets or sets the "ms-auto" class used to push an element to the end of its flex row.

public string PushEnd { get; set; }

Property Value

string