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

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

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 listListClassesMod {
  
  @JSImport("@mui/material/List/listClasses", JSImport.Namespace)
  @js.native
  val ^ : js.Any = js.native
  
  @JSImport("@mui/material/List/listClasses", JSImport.Default)
  @js.native
  val default: ListClasses = js.native
  
  inline def getListUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getListUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
  
  type ListClassKey = "root" | "padding" | "dense" | "subheader"
  
  trait ListClasses extends StObject {
    
    /** Styles applied to the root element if dense. */
    var dense: String
    
    /** Styles applied to the root element unless `disablePadding={true}`. */
    var padding: String
    
    /** Styles applied to the root element. */
    var root: String
    
    /** Styles applied to the root element if a `subheader` is provided. */
    var subheader: String
  }
  object ListClasses {
    
    inline def apply(dense: String, padding: String, root: String, subheader: String): ListClasses = {
      val __obj = js.Dynamic.literal(dense = dense.asInstanceOf[js.Any], padding = padding.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], subheader = subheader.asInstanceOf[js.Any])
      __obj.asInstanceOf[ListClasses]
    }
    
    @scala.inline
    implicit open class MutableBuilder[Self <: ListClasses] (val x: Self) extends AnyVal {
      
      inline def setDense(value: String): Self = StObject.set(x, "dense", value.asInstanceOf[js.Any])
      
      inline def setPadding(value: String): Self = StObject.set(x, "padding", value.asInstanceOf[js.Any])
      
      inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
      
      inline def setSubheader(value: String): Self = StObject.set(x, "subheader", value.asInstanceOf[js.Any])
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy