Class InputVariantBuilder
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
roundedBuilderRoundedBuilder
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
variantInputVariantThe input variant.
themeTwInputThemeOptional theme configuration.
roundedRounded?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
variantInputVariantThe input variant.
themeTwInputThemeThe input theme.
focusStyleInputFocusStyleWhich of the theme's focus borders to apply.
roundedRounded?The component's rounding. When null, the theme's default rounding is used.