Class TwContainerTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for TwContainer. Override any property to customize container styles globally.
[ExcludeFromCodeCoverage]
public class TwContainerTheme
- Inheritance
-
TwContainerTheme
- Inherited Members
Remarks
The maximum widths and the numeric padding steps come from the shared MaxWidth and TwBlazorSpacing scales.
Constructors
TwContainerTheme()
public TwContainerTheme()
Properties
Base
Gets or sets the classes every container has, such as its full width.
public required string Base { get; set; }
Property Value
Centered
Gets or sets the classes that center the container in its parent.
public required string Centered { get; set; }
Property Value
DefaultMaxWidth
Gets or sets the maximum width used when no MaxWidth is set.
public ContainerSize DefaultMaxWidth { get; set; }
Property Value
Gutter
Gets or sets the start and end padding used when no Gutter is set, typically growing with the screen.
public required string Gutter { get; set; }
Property Value
QueryContainer
Gets or sets the class that makes the container a query container, so its children can respond to its
width with Tailwind's @sm:, @md: and similar prefixes.
public required string QueryContainer { get; set; }
Property Value
SurfaceDefault
Gets or sets the classes for Default.
public required string SurfaceDefault { get; set; }
Property Value
SurfaceElevated
Gets or sets the classes for Elevated.
public required string SurfaceElevated { get; set; }
Property Value
SurfaceSubtle
Gets or sets the classes for Subtle.
public required string SurfaceSubtle { get; set; }