Class TwInputGroupTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for the input group (TwInputGroup) and its parts (TwInputGroupAddon, TwInputGroupText and TwInputGroupButton). Override any property to customize input group styles globally.
[ExcludeFromCodeCoverage]
public class TwInputGroupTheme
- Inheritance
-
TwInputGroupTheme
- Inherited Members
Remarks
The group draws the field's border, background and rounding from TwInputTheme (its
OutlinedBorder, FilledBorder and
FilledBackgroundColor), so it looks like the inputs beside it. The input inside it is
marked with a data-tw-input-group-control attribute, which the focus, invalid and disabled classes below
select on.
Constructors
TwInputGroupTheme()
public TwInputGroupTheme()
Properties
Addon
Gets or sets the base classes for every addon.
public required string Addon { get; set; }
Property Value
AddonBlockEnd
Gets or sets the classes for an addon placed with BlockEnd.
public required string AddonBlockEnd { get; set; }
Property Value
AddonBlockStart
Gets or sets the classes for an addon placed with BlockStart.
public required string AddonBlockStart { get; set; }
Property Value
AddonInlineEnd
Gets or sets the classes for an addon placed with InlineEnd.
public required string AddonInlineEnd { get; set; }
Property Value
AddonInlineStart
Gets or sets the classes for an addon placed with InlineStart.
public required string AddonInlineStart { get; set; }
Property Value
Button
Gets or sets the classes added to every TwInputGroupButton.
public required string Button { get; set; }
Property Value
ButtonDense
Gets or sets the classes added to a TwInputGroupButton with a label in a dense group, so it fits the shorter field.
public required string ButtonDense { get; set; }
Property Value
Control
Gets or sets the classes added to the input inside a group, after its own variant classes, to remove the border, background, rounding, padding and focus ring the group now draws instead.
public required string Control { get; set; }
Property Value
ControlRoot
Gets or sets the classes for the root element of an input inside a group, so it fills the room the addons leave.
public required string ControlRoot { get; set; }
Property Value
ControlRootOutlinedOffset
Gets or sets the margin that takes the border of an Outlined group off the height of the input's root, so the group is as tall as an input on its own.
public required string ControlRootOutlinedOffset { get; set; }
Property Value
ControlRootUnderlinedOffset
Gets or sets the margin that takes the bottom border of a Filled or Default group off the height of the input's root, so the group is as tall as an input on its own.
public required string ControlRootUnderlinedOffset { get; set; }
Property Value
DefaultPadding
Gets or sets the padding of a group using the Default variant, whose input has no padding of its own.
public required string DefaultPadding { get; set; }
Property Value
Disabled
Gets or sets the classes applied to the group while its input is disabled.
public required string Disabled { get; set; }
Property Value
FocusBorder
Gets or sets the border and ring shown on the group while its input has focus.
public required string FocusBorder { get; set; }
Property Value
Group
Gets or sets the base classes for the group itself: the box that holds the input and its addons in a row, or in a column once it has a block addon (BlockStart or BlockEnd).
public required string Group { get; set; }
Property Value
IconButtonDense
Gets or sets the classes added to an icon-only TwInputGroupButton in a dense group, so it fits the shorter field.
public required string IconButtonDense { get; set; }
Property Value
InvalidBorder
Gets or sets the border shown on the group while its input is invalid (aria-invalid="true").
public required string InvalidBorder { get; set; }
Property Value
Padding
public required string Padding { get; set; }
Property Value
Root
Gets or sets the classes for the outer element that holds the label, the group and any validation messages.
public required string Root { get; set; }
Property Value
Text
Gets or sets the classes for the static text of a TwInputGroupText.
public required string Text { get; set; }