Table of Contents

Class TwSeparatorTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for the separator component (TwSeparator). Override any property to customize separator styles globally.

[ExcludeFromCodeCoverage]
public class TwSeparatorTheme
Inheritance
TwSeparatorTheme
Inherited Members

Remarks

A separator without a label is a single element that is itself the line. A separator with a label is a row (or, when vertical, a column) holding a line, the label and a second line; the lines take their color from it. The line is drawn as a border so it stays visible in forced colors (Windows high contrast) mode.

Constructors

TwSeparatorTheme()

public TwSeparatorTheme()

Properties

Base

Gets or sets the base classes applied to every separator's root element.

public required string Base { get; set; }

Property Value

string

Colors

Gets or sets the border and text classes of a separator for each Color.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

Dashed

Gets or sets the classes for a Dashed line.

public required string Dashed { get; set; }

Property Value

string

Dotted

Gets or sets the classes for a Dotted line.

public required string Dotted { get; set; }

Property Value

string

Horizontal

Gets or sets the size classes for a horizontal separator without a label, such as its width.

public required string Horizontal { get; set; }

Property Value

string

HorizontalLine

Gets or sets the border classes that draw a horizontal line, on the separator itself or on each line beside a label.

public required string HorizontalLine { get; set; }

Property Value

string

Remarks

The default theme sets the border width from the --separator-width CSS variable, which Thin, Medium and Thick set on the root element, so one class draws every thickness. Keep the two in step when overriding either.

Label

Gets or sets the classes for the label.

public required string Label { get; set; }

Property Value

string

LabelLine

Gets or sets the classes applied to each line beside a label, such as taking the separator's border color.

public required string LabelLine { get; set; }

Property Value

string

LabeledHorizontal

Gets or sets the layout classes for a horizontal separator with a label: the row holding the lines and the label.

public required string LabeledHorizontal { get; set; }

Property Value

string

LabeledVertical

Gets or sets the layout classes for a vertical separator with a label: the column holding the lines and the label.

public required string LabeledVertical { get; set; }

Property Value

string

LineInset

Gets or sets the classes for the short line before a label aligned to the start, or after one aligned to the end.

public required string LineInset { get; set; }

Property Value

string

LineStretch

Gets or sets the classes for a line beside a label that fills the space left over.

public required string LineStretch { get; set; }

Property Value

string

Medium

Gets or sets the classes for a Medium line.

public required string Medium { get; set; }

Property Value

string

Remarks

Applied to the root element. The default theme sets the --separator-width CSS variable read by HorizontalLine and VerticalLine, for example [--separator-width:2px].

Neutral

Gets or sets the border and text classes of a separator with no color.

public required string Neutral { get; set; }

Property Value

string

Solid

Gets or sets the classes for a Solid line.

public required string Solid { get; set; }

Property Value

string

Thick

Gets or sets the classes for a Thick line.

public required string Thick { get; set; }

Property Value

string

Remarks

Applied to the root element. The default theme sets the --separator-width CSS variable read by HorizontalLine and VerticalLine, for example [--separator-width:4px].

Thin

Gets or sets the classes for a Thin line.

public required string Thin { get; set; }

Property Value

string

Remarks

Applied to the root element. The default theme sets the --separator-width CSS variable read by HorizontalLine and VerticalLine, for example [--separator-width:1px].

Vertical

Gets or sets the size classes for a vertical separator without a label, such as stretching to the height of its row.

public required string Vertical { get; set; }

Property Value

string

VerticalLine

Gets or sets the border classes that draw a vertical line, on the separator itself or on each line beside a label.

public required string VerticalLine { get; set; }

Property Value

string

Remarks

The default theme sets the border width from the --separator-width CSS variable; see HorizontalLine.