Class RoundedBuilder
Provides utility methods for generating CSS border-radius classes.
public class RoundedBuilder
- Inheritance
-
RoundedBuilder
- Inherited Members
Constructors
RoundedBuilder(TwBlazorOptions)
Provides utility methods for generating CSS border-radius classes.
public RoundedBuilder(TwBlazorOptions options)
Parameters
optionsTwBlazorOptions
Properties
DefaultRounded
Gets the theme's default rounded level.
public Rounded DefaultRounded { get; }
Property Value
Methods
ForSurface(Rounded)
Caps Full at Lg for surfaces such as cards, tables, alerts and panels, where a pill shape cuts into the content. Small controls like buttons, chips and inputs keep it.
public static Rounded ForSurface(Rounded rounded)
Parameters
roundedRoundedThe rounding asked for.
Returns
GetRounded()
Gets the Tailwind CSS border-radius class for the default rounded level defined in the theme.
public string GetRounded()
Returns
- string
The corresponding Tailwind CSS class.
GetRounded(Rounded?)
Gets the Tailwind CSS border-radius class for the specified rounded level.
public string GetRounded(Rounded? rounded)
Parameters
roundedRounded?The rounded level.
Returns
- string
The corresponding Tailwind CSS class.
GetRoundedBottom(Rounded?)
Gets the Tailwind CSS border-radius class for the bottom corners at the specified rounded level.
public string GetRoundedBottom(Rounded? rounded)
Parameters
roundedRounded?The rounded level.
Returns
- string
The corresponding Tailwind CSS class for bottom border-radius.
GetRoundedEnd()
Gets the Tailwind CSS border-radius class for the end corners (logical, RTL-aware) at the default rounded level defined in the theme.
public string GetRoundedEnd()
Returns
- string
The corresponding Tailwind CSS class for end border-radius.
GetRoundedEnd(Rounded?)
Gets the Tailwind CSS border-radius class for the end corners (logical, RTL-aware) at the specified rounded level.
public string GetRoundedEnd(Rounded? rounded)
Parameters
roundedRounded?The rounded level.
Returns
- string
The corresponding Tailwind CSS class for end border-radius.
GetRoundedStart()
Gets the Tailwind CSS border-radius class for the start corners (logical, RTL-aware) at the default rounded level defined in the theme.
public string GetRoundedStart()
Returns
- string
The corresponding Tailwind CSS class for start border-radius.
GetRoundedStart(Rounded?)
Gets the Tailwind CSS border-radius class for the start corners (logical, RTL-aware) at the specified rounded level.
public string GetRoundedStart(Rounded? rounded)
Parameters
roundedRounded?The rounded level.
Returns
- string
The corresponding Tailwind CSS class for start border-radius.
GetRoundedTop()
Gets the Tailwind CSS border-radius class for the top corners at the default rounded level defined in the theme.
public string GetRoundedTop()
Returns
- string
The corresponding Tailwind CSS class for top border-radius.
GetRoundedTop(Rounded?)
Gets the Tailwind CSS border-radius class for the top corners at the specified rounded level.
public string GetRoundedTop(Rounded? rounded)
Parameters
roundedRounded?The rounded level.
Returns
- string
The corresponding Tailwind CSS class for top border-radius.
Inset(Rounded)
One step tighter than rounded, for a control sitting inside a rounded bar (a tab in a tab
list, an AM/PM toggle) so its corners follow the bar's. Full stays full.
public static Rounded Inset(Rounded rounded)
Parameters
roundedRoundedThe rounding of the surrounding bar.
Returns
- Rounded
The rounding for the control inside it.