com.olvind.mui.muiMaterial.anon.DisableSticky.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.muiMaterial.anon
import com.olvind.mui.muiMaterial.stylesCreateThemeMod.Theme
import com.olvind.mui.muiSystem.styleFunctionSxStyleFunctionSxMod.SxProps
import com.olvind.mui.muiSystem.styleFunctionSxStyleFunctionSxMod.SystemStyleObject
import slinky.core.facade.ReactElement
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait DisableSticky extends StObject {
/**
* The content of the component.
*/
var children: js.UndefOr[ReactElement] = js.undefined
/**
* Override or extend the styles applied to the component.
*/
var classes: js.UndefOr[PartialListSubheaderClasses] = js.undefined
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'default'
*/
var color: js.UndefOr["default" | "primary" | "inherit"] = js.undefined
/**
* If `true`, the List Subheader will not have gutters.
* @default false
*/
var disableGutters: js.UndefOr[Boolean] = js.undefined
/**
* If `true`, the List Subheader will not stick to the top during scroll.
* @default false
*/
var disableSticky: js.UndefOr[Boolean] = js.undefined
/**
* If `true`, the List Subheader is indented.
* @default false
*/
var inset: js.UndefOr[Boolean] = js.undefined
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
var sx: js.UndefOr[SxProps[Theme]] = js.undefined
}
object DisableSticky {
inline def apply(): DisableSticky = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[DisableSticky]
}
@scala.inline
implicit open class MutableBuilder[Self <: DisableSticky] (val x: Self) extends AnyVal {
inline def setChildren(value: ReactElement): Self = StObject.set(x, "children", value.asInstanceOf[js.Any])
inline def setChildrenUndefined: Self = StObject.set(x, "children", js.undefined)
inline def setClasses(value: PartialListSubheaderClasses): Self = StObject.set(x, "classes", value.asInstanceOf[js.Any])
inline def setClassesUndefined: Self = StObject.set(x, "classes", js.undefined)
inline def setColor(value: "default" | "primary" | "inherit"): Self = StObject.set(x, "color", value.asInstanceOf[js.Any])
inline def setColorUndefined: Self = StObject.set(x, "color", js.undefined)
inline def setDisableGutters(value: Boolean): Self = StObject.set(x, "disableGutters", value.asInstanceOf[js.Any])
inline def setDisableGuttersUndefined: Self = StObject.set(x, "disableGutters", js.undefined)
inline def setDisableSticky(value: Boolean): Self = StObject.set(x, "disableSticky", value.asInstanceOf[js.Any])
inline def setDisableStickyUndefined: Self = StObject.set(x, "disableSticky", js.undefined)
inline def setInset(value: Boolean): Self = StObject.set(x, "inset", value.asInstanceOf[js.Any])
inline def setInsetUndefined: Self = StObject.set(x, "inset", js.undefined)
inline def setSx(value: SxProps[Theme]): Self = StObject.set(x, "sx", value.asInstanceOf[js.Any])
inline def setSxFunction1(value: Theme => SystemStyleObject[Theme]): Self = StObject.set(x, "sx", js.Any.fromFunction1(value))
inline def setSxNull: Self = StObject.set(x, "sx", null)
inline def setSxUndefined: Self = StObject.set(x, "sx", js.undefined)
inline def setSxVarargs(value: (Boolean | SystemStyleObject[Theme] | (js.Function1[Theme, SystemStyleObject[Theme]]))*): Self = StObject.set(x, "sx", js.Array(value*))
}
}