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
GapX
Gets or sets the gap between columns (gap-x-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale GapX { get; set; }
Property Value
GapY
Gets or sets the gap between rows (gap-y-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale GapY { get; set; }
Property Value
InteractiveRowPadding
Gets or sets the padding preset used for interactive list/menu rows.
public string InteractiveRowPadding { get; set; }
Property Value
Margin
Gets or sets the margin on every side (m-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale Margin { get; set; }
Property Value
MarginBottom
Gets or sets the margin on the bottom (mb-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale MarginBottom { get; set; }
Property Value
MarginEnd
Gets or sets the margin on the end (me-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale MarginEnd { get; set; }
Property Value
MarginStart
Gets or sets the margin on the start (ms-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale MarginStart { get; set; }
Property Value
MarginTop
Gets or sets the margin on the top (mt-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale MarginTop { get; set; }
Property Value
Padding
Gets or sets the padding on every side (p-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale Padding { get; set; }
Property Value
PaddingBottom
Gets or sets the padding on the bottom (pb-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale PaddingBottom { get; set; }
Property Value
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
PaddingTop
Gets or sets the padding on the top (pt-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale PaddingTop { get; set; }
Property Value
PaddingX
Gets or sets the padding on the start and end (px-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale PaddingX { get; set; }
Property Value
PaddingY
Gets or sets the padding on the top and bottom (py-*), keyed by step. See TwSpacingStepScale.
public TwSpacingStepScale PaddingY { get; set; }
Property Value
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
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; }