initialWidth

io.github.nafg.scalajs.facades.mui.Hidden$.Props.initialWidth$
object initialWidth extends Prop[String]

You can use this prop when choosing the js implementation with server-side rendering.

As window.innerWidth is unavailable on the server, we default to rendering an empty component during the first mount. You might want to use an heuristic to approximate the screen width of the client browser screen width.

For instance, you could be using the user-agent or the client-hints. https://caniuse.com/#search=client%20hint

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Inherited methods

def :=(value: String): Setting

Attributes

Inherited from:
Prop
def :=?(value: Option[String]): Setting

Attributes

Inherited from:
Prop
def setAs[B](value: B)(implicit B: Writer[B]): Setting

Attributes

Inherited from:
Prop
def setRaw(value: Any): Setting

Attributes

Inherited from:
Prop

Concrete fields

val lg: Setting
val md: Setting
val sm: Setting
val xl: Setting
val xs: Setting

Inherited fields

val name: String

Attributes

Inherited from:
Prop