Class TwButtonTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for button components (TwButton). Override any property to customize button styles globally.
[ExcludeFromCodeCoverage]
public class TwButtonTheme
- Inheritance
-
TwButtonTheme
- Inherited Members
Constructors
TwButtonTheme()
public TwButtonTheme()
Properties
Base
Gets or sets the base classes applied to all buttons.
public required string Base { get; set; }
Property Value
ButtonRounded
Gets or sets the default border radius for buttons.
public Rounded? ButtonRounded { get; set; }
Property Value
Remarks
Configure button rounded corners via theme.
Set to None to disable rounded corners.
If not set, falls back to global DefaultRounded.
Default is null (uses global default).
ButtonShadow
Gets or sets the default shadow level for buttons.
public Shadow? ButtonShadow { get; set; }
Property Value
Remarks
Configure button shadows via theme.
Set to None to disable shadows.
If not set, falls back to global DefaultShadow.
Default is null (uses global default).
ButtonUppercase
Gets or sets whether to use uppercase text for buttons by default.
public bool ButtonUppercase { get; set; }
Property Value
Remarks
Default is false.
DefaultCursor
Gets or sets the default cursor class.
public required string DefaultCursor { get; set; }
Property Value
DefaultVariant
Gets or sets the default button variant for all buttons.
public ButtonVariant? DefaultVariant { get; set; }
Property Value
Remarks
Default is Filled. Individual buttons can override this setting.
DensePadding
Gets or sets the padding classes for dense buttons.
public required string DensePadding { get; set; }
Property Value
DisabledCursor
Gets or sets the disabled cursor class.
public required string DisabledCursor { get; set; }
Property Value
DisabledFilled
Gets or sets the disabled background and text classes.
public required string DisabledFilled { get; set; }
Property Value
DisabledOutlined
Gets or sets the disabled outlined button classes.
public required string DisabledOutlined { get; set; }
Property Value
DisabledText
Gets or sets the disabled text button classes.
public required string DisabledText { get; set; }
Property Value
IconButton
Gets or sets the classes for icon buttons.
public required string IconButton { get; set; }
Property Value
IconTypography
Gets or sets the size/line-height classes for a button's start/end icon.
public required string IconTypography { get; set; }
Property Value
Padding
Gets or sets the padding classes for non-icon buttons.
public required string Padding { get; set; }
Property Value
ReadonlyCursor
Gets or sets the readonly cursor class.
public required string ReadonlyCursor { get; set; }
Property Value
Typography
Gets or sets the typography classes for button text.
public required string Typography { get; set; }
Property Value
Uppercase
Gets or sets the uppercase class for button text if ButtonUppercase is true.
public required string Uppercase { get; set; }