static MDCListDividerComponent()
 {
     _classNameBuilder = new ClassBuilder <MDCListDividerComponent>("mdc", "list-divider")
                         .DefineClass("padded", c => c.Padded, PrefixSeparators.Modifier)
                         .DefineClass("inset", (c) => c.Inset, PrefixSeparators.Modifier);
 }
Example #2
0
 static MDCTopAppBarSectionComponent()
 {
     _classNameBuilder = new ClassBuilder <MDCTopAppBarSectionComponent>("mdc", "top-app-bar__section")
                         .DefineClass("shrink-to-fit", c => c.ShrinkToFit, PrefixSeparators.Modifier)
                         .DefineClass(c => $"align-{c.Alignment.ToString().ToLowerInvariant()}", PrefixSeparators.Modifier);
 }
Example #3
0
 static MDCDrawerComponent()
 {
     _classNameBuilder = new ClassBuilder <MDCDrawerComponent>("mdc", "drawer")
                         .DefineClass((c) => c.Type.ToString().ToLowerInvariant(), PrefixSeparators.Modifier);
 }
Example #4
0
 static MDCButtonComponent()
 {
     _classNameBuilder = new ClassBuilder <MDCButtonComponent>("mdc", "button")
                         .DefineClass("dense", c => c.Dense, PrefixSeparators.Modifier)
                         .DefineClass((c) => c.Style.ToString().ToLowerInvariant(), (c) => c.Style != MDCButtonStyle.Default, PrefixSeparators.Modifier);
 }
 static MDCDrawerItemComponent()
 {
     _classNameBuilder = new ClassBuilder <MDCDrawerItemComponent>("mdc", "list-item")
                         .DefineClass("activated", c => c.Activated, PrefixSeparators.Modifier);
 }