Table of Contents

Class InputVariantBuilder

Namespace
TwBlazor.Builders
Assembly
TwBlazor.dll

Provides utility methods for generating CSS classes for input component variants.

public class InputVariantBuilder
Inheritance
InputVariantBuilder
Inherited Members

Constructors

InputVariantBuilder(RoundedBuilder)

Provides utility methods for generating CSS classes for input component variants.

public InputVariantBuilder(RoundedBuilder roundedBuilder)

Parameters

roundedBuilder RoundedBuilder

Methods

GetClasses(InputVariant, TwInputTheme, Rounded?)

Gets the Tailwind CSS classes for text input variants.

public string GetClasses(InputVariant variant, TwInputTheme theme, Rounded? rounded = null)

Parameters

variant InputVariant

The input variant.

theme TwInputTheme

Optional theme configuration.

rounded Rounded?

The component's rounding. When null, the theme's default rounding is used.

Returns

string

The corresponding Tailwind CSS classes.

GetClasses(InputVariant, TwInputTheme, InputFocusStyle, Rounded?)

Gets the classes for an input variant, with the focus border matched to how the control takes focus.

public string GetClasses(InputVariant variant, TwInputTheme theme, InputFocusStyle focusStyle, Rounded? rounded = null)

Parameters

variant InputVariant

The input variant.

theme TwInputTheme

The input theme.

focusStyle InputFocusStyle

Which of the theme's focus borders to apply.

rounded Rounded?

The component's rounding. When null, the theme's default rounding is used.

Returns

string