All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.olvind.mui.muiMaterial.formGroupFormGroupClassesMod.scala Maven / Gradle / Ivy

The newest version!
package com.olvind.mui.muiMaterial

import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object formGroupFormGroupClassesMod {
  
  @JSImport("@mui/material/FormGroup/formGroupClasses", JSImport.Namespace)
  @js.native
  val ^ : js.Any = js.native
  
  @JSImport("@mui/material/FormGroup/formGroupClasses", JSImport.Default)
  @js.native
  val default: FormGroupClasses = js.native
  
  inline def getFormGroupUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getFormGroupUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
  
  type FormGroupClassKey = "root" | "row" | "error"
  
  trait FormGroupClasses extends StObject {
    
    /** State class applied to the root element if `error={true}`. */
    var error: String
    
    /** Styles applied to the root element. */
    var root: String
    
    /** Styles applied to the root element if `row={true}`. */
    var row: String
  }
  object FormGroupClasses {
    
    inline def apply(error: String, root: String, row: String): FormGroupClasses = {
      val __obj = js.Dynamic.literal(error = error.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], row = row.asInstanceOf[js.Any])
      __obj.asInstanceOf[FormGroupClasses]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: FormGroupClasses] (val x: Self) extends AnyVal {
      
      inline def setError(value: String): Self = StObject.set(x, "error", value.asInstanceOf[js.Any])
      
      inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
      
      inline def setRow(value: String): Self = StObject.set(x, "row", value.asInstanceOf[js.Any])
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy