com.olvind.mui.muiMaterial.anon.Padding.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 Padding extends StObject {
/**
* The content of the table, normally `TableHead` and `TableBody`.
*/
var children: js.UndefOr[ReactElement] = js.undefined
/**
* Override or extend the styles applied to the component.
*/
var classes: js.UndefOr[PartialTableClasses] = js.undefined
/**
* Allows TableCells to inherit padding of the Table.
* @default 'normal'
*/
var padding: js.UndefOr["normal" | "checkbox" | "none"] = js.undefined
/**
* Allows TableCells to inherit size of the Table.
* @default 'medium'
*/
var size: js.UndefOr["small" | "medium"] = js.undefined
/**
* Set the header sticky.
*
* ⚠️ It doesn't work with IE11.
* @default false
*/
var stickyHeader: 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 Padding {
inline def apply(): Padding = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[Padding]
}
@scala.inline
implicit open class MutableBuilder[Self <: Padding] (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: PartialTableClasses): Self = StObject.set(x, "classes", value.asInstanceOf[js.Any])
inline def setClassesUndefined: Self = StObject.set(x, "classes", js.undefined)
inline def setPadding(value: "normal" | "checkbox" | "none"): Self = StObject.set(x, "padding", value.asInstanceOf[js.Any])
inline def setPaddingUndefined: Self = StObject.set(x, "padding", js.undefined)
inline def setSize(value: "small" | "medium"): Self = StObject.set(x, "size", value.asInstanceOf[js.Any])
inline def setSizeUndefined: Self = StObject.set(x, "size", js.undefined)
inline def setStickyHeader(value: Boolean): Self = StObject.set(x, "stickyHeader", value.asInstanceOf[js.Any])
inline def setStickyHeaderUndefined: Self = StObject.set(x, "stickyHeader", 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*))
}
}