com.olvind.mui.muiBase.components.NoSsr.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.muiBase.components
import com.olvind.mui.StBuildingComponent
import com.olvind.mui.muiBase.noSsrNoSsrDottypesMod.NoSsrProps
import slinky.core.facade.ReactElement
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 NoSsr {
@JSImport("@mui/base/NoSsr", JSImport.Default)
@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 defer(value: Boolean): this.type = set("defer", value.asInstanceOf[js.Any])
inline def fallback(value: ReactElement): this.type = set("fallback", value.asInstanceOf[js.Any])
}
type Props = NoSsrProps
implicit def make(companion: NoSsr.type): Builder = new Builder(js.Array(this.component, js.Dictionary.empty))()
def styled: com.olvind.mui.StyledComponent.Builder[NoSsrProps, Builder] = new com.olvind.mui.StyledComponent.Builder[NoSsrProps, Builder](this.component, new js.Object, js.Array(), (newComponent: Any) => new Builder(js.Array(newComponent, js.Dictionary.empty)))
def withProps(p: NoSsrProps): Builder = new Builder(js.Array(this.component, p.asInstanceOf[js.Any]))
}