com.olvind.mui.muiMaterial.cardMediaCardMediaClassesMod.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 cardMediaCardMediaClassesMod {
@JSImport("@mui/material/CardMedia/cardMediaClasses", JSImport.Namespace)
@js.native
val ^ : js.Any = js.native
@JSImport("@mui/material/CardMedia/cardMediaClasses", JSImport.Default)
@js.native
val default: CardMediaClasses = js.native
inline def getCardMediaUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getCardMediaUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
type CardMediaClassKey = "root" | "media" | "img"
trait CardMediaClasses extends StObject {
/** Styles applied to the root element if `component="picture or img"`. */
var img: String
/** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */
var media: String
/** Styles applied to the root element. */
var root: String
}
object CardMediaClasses {
inline def apply(img: String, media: String, root: String): CardMediaClasses = {
val __obj = js.Dynamic.literal(img = img.asInstanceOf[js.Any], media = media.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any])
__obj.asInstanceOf[CardMediaClasses]
}
@scala.inline
implicit open class MutableBuilder[Self <: CardMediaClasses] (val x: Self) extends AnyVal {
inline def setImg(value: String): Self = StObject.set(x, "img", value.asInstanceOf[js.Any])
inline def setMedia(value: String): Self = StObject.set(x, "media", value.asInstanceOf[js.Any])
inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
}
}
}