Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 2.3 KB

File metadata and controls

25 lines (20 loc) · 2.3 KB

ClassNamesBuilder Struct

A helper class for building a string of CSS class names.

public readonly struct ClassNamesBuilder
Constructors
ClassNamesBuilder(string, string, string) A helper class for building a string of CSS class names.
Methods
AddClass(string) Adds a class name to the builder.
AddClass(string, bool) Adds a class name to the builder if the condition is true.
AddClass(string, Func<bool>) Adds a class name to the builder if the result of the function is true.
AddRawValue(string) Adds a raw value to the builder.
Build() Builds the string of class names.
Default(string) Creates a new instance of ClassNamesBuilder.
Empty() Creates a new instance of ClassNamesBuilder with a prefix.
ToString() Builds the string of class names.