Props

io.github.nafg.scalajs.facades.mui.base.Portal.Props
class Props extends WithChildren[VdomNode]

Attributes

Graph
Supertypes
trait WithChildren[VdomNode]
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

Inherited from:
PropTypes
Supertypes
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

def children: Prop[VdomNode]

The children to render into the container.

The children to render into the container.

Attributes

def container: Prop[Any | Any => Any]

An HTML element or function that returns one. The container will have the portal children appended to it.

An HTML element or function that returns one. The container will have the portal children appended to it.

You can also provide a callback, which is called in a React layout effect. This lets you set the container from a ref, and also makes server-side rendering possible.

By default, it uses the body of the top-level document object, so it's simply document.body most of the time.

Attributes

def disablePortal: Prop[Boolean]

The children will be under the DOM hierarchy of the parent component.

The children will be under the DOM hierarchy of the parent component.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def style: Prop[Object]

Inherited methods

def of[A : Writer](implicit evidence$1: Writer[A], name: Name): Prop[A]

Attributes

Inherited from:
PropTypes

Inherited fields

val key: Prop[Key]

Attributes

Inherited from:
PropTypes