
com.olvind.mui.muiMaterial.stylesResponsiveFontSizesMod.scala Maven / Gradle / Ivy
package com.olvind.mui.muiMaterial
import com.olvind.mui.muiMaterial.stylesCreateThemeMod.Theme
import com.olvind.mui.muiSystem.createThemeCreateBreakpointsMod.Breakpoint
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object stylesResponsiveFontSizesMod {
@JSImport("@mui/material/styles/responsiveFontSizes", JSImport.Namespace)
@js.native
val ^ : js.Any = js.native
inline def default(theme: Theme): Theme = ^.asInstanceOf[js.Dynamic].applyDynamic("default")(theme.asInstanceOf[js.Any]).asInstanceOf[Theme]
inline def default(theme: Theme, options: ResponsiveFontSizesOptions): Theme = (^.asInstanceOf[js.Dynamic].applyDynamic("default")(theme.asInstanceOf[js.Any], options.asInstanceOf[js.Any])).asInstanceOf[Theme]
trait ResponsiveFontSizesOptions extends StObject {
var breakpoints: js.UndefOr[js.Array[Breakpoint]] = js.undefined
var disableAlign: js.UndefOr[Boolean] = js.undefined
var factor: js.UndefOr[Double] = js.undefined
var variants: js.UndefOr[
js.Array[
"body2" | "h2" | "subtitle1" | "button" | "caption" | "h3" | "body1" | "h6" | "overline" | "h1" | "subtitle2" | "h5" | "h4" | "fontWeightBold" | "fontWeightRegular" | "fontWeightLight" | "fontWeightMedium" | "htmlFontSize" | "fontSize" | "fontFamily"
]
] = js.undefined
}
object ResponsiveFontSizesOptions {
inline def apply(): ResponsiveFontSizesOptions = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[ResponsiveFontSizesOptions]
}
@scala.inline
implicit open class MutableBuilder[Self <: ResponsiveFontSizesOptions] (val x: Self) extends AnyVal {
inline def setBreakpoints(value: js.Array[Breakpoint]): Self = StObject.set(x, "breakpoints", value.asInstanceOf[js.Any])
inline def setBreakpointsUndefined: Self = StObject.set(x, "breakpoints", js.undefined)
inline def setBreakpointsVarargs(value: Breakpoint*): Self = StObject.set(x, "breakpoints", js.Array(value*))
inline def setDisableAlign(value: Boolean): Self = StObject.set(x, "disableAlign", value.asInstanceOf[js.Any])
inline def setDisableAlignUndefined: Self = StObject.set(x, "disableAlign", js.undefined)
inline def setFactor(value: Double): Self = StObject.set(x, "factor", value.asInstanceOf[js.Any])
inline def setFactorUndefined: Self = StObject.set(x, "factor", js.undefined)
inline def setVariants(
value: js.Array[
"body2" | "h2" | "subtitle1" | "button" | "caption" | "h3" | "body1" | "h6" | "overline" | "h1" | "subtitle2" | "h5" | "h4" | "fontWeightBold" | "fontWeightRegular" | "fontWeightLight" | "fontWeightMedium" | "htmlFontSize" | "fontSize" | "fontFamily"
]
): Self = StObject.set(x, "variants", value.asInstanceOf[js.Any])
inline def setVariantsUndefined: Self = StObject.set(x, "variants", js.undefined)
inline def setVariantsVarargs(
value: ("body2" | "h2" | "subtitle1" | "button" | "caption" | "h3" | "body1" | "h6" | "overline" | "h1" | "subtitle2" | "h5" | "h4" | "fontWeightBold" | "fontWeightRegular" | "fontWeightLight" | "fontWeightMedium" | "htmlFontSize" | "fontSize" | "fontFamily")*
): Self = StObject.set(x, "variants", js.Array(value*))
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy