com.olvind.mui.emotionReact.components.Global.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.emotionReact.components
import com.olvind.mui.StBuildingComponent
import com.olvind.mui.emotionReact.mod.GlobalProps
import com.olvind.mui.emotionReact.mod.Theme
import com.olvind.mui.emotionSerialize.mod.Interpolation
import slinky.web.html.`*`.tag
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object Global {
@JSImport("@emotion/react", "Global")
@js.native
val component: js.Object = js.native
@scala.inline
open class Builder (val args: js.Array[Any])
extends AnyVal
with StBuildingComponent[tag.type, js.Object] {
inline def styles(value: Interpolation[Theme]): this.type = set("styles", value.asInstanceOf[js.Any])
inline def stylesNull: this.type = set("styles", null)
}
type Props = GlobalProps
implicit def make(companion: Global.type): Builder = new Builder(js.Array(this.component, js.Dictionary.empty))()
def styled: com.olvind.mui.StyledComponent.Builder[GlobalProps, Builder] = new com.olvind.mui.StyledComponent.Builder[GlobalProps, Builder](this.component, new js.Object, js.Array(), (newComponent: Any) => new Builder(js.Array(newComponent, js.Dictionary.empty)))
def withProps(p: GlobalProps): Builder = new Builder(js.Array(this.component, p.asInstanceOf[js.Any]))
}