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 a 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 Objecttrait Matchableclass Any
- Self type
-
initialWidth.type
Members list
In this article