Props

io.github.nafg.scalajs.facades.mui.base.Popper.Props
class Props extends WithChildren[VdomNode | Any => Any]

Attributes

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

Members list

Type members

Classlikes

object direction extends Prop[String]

Direction of the text.

Direction of the text.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
direction.type
object placement extends Prop[String]

Popper placement.

Popper placement.

Attributes

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

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def anchorEl: Prop[Any]

An HTML element, virtualElement, or a function that returns either. It's used to set the position of the popper. The return value will passed as the reference object of the Popper instance.

An HTML element, virtualElement, or a function that returns either. It's used to set the position of the popper. The return value will passed as the reference object of the Popper instance.

Attributes

def children: Prop[VdomNode | Any => Any]

Popper render function or node.

Popper render function or node.

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 keepMounted: Prop[Boolean]

Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Popper.

Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Popper.

Attributes

def modifiers: Prop[Seq[Object]]

Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".

Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".

A modifier is a function that is called each time Popper.js needs to compute the position of the popper. For this reason, modifiers should be very performant to avoid bottlenecks. To learn how to create a modifier, read the modifiers documentation.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def open: Prop[Boolean]

If true, the component is shown.

If true, the component is shown.

Attributes

def popperOptions: Prop[Object]

Options provided to the Popper.js instance.

Options provided to the Popper.js instance.

Attributes

def popperRef: Prop[Any]

A ref that points to the used popper instance.

A ref that points to the used popper instance.

Attributes

def slotProps: Prop[Object]

The props used for each slot inside the Popper.

The props used for each slot inside the Popper.

Attributes

def slots: Prop[Object]

The components used for each slot inside the Popper. Either a string to use a HTML element or a component.

The components used for each slot inside the Popper. Either a string to use a HTML element or a component.

Attributes

def style: Prop[Object]
def transition: Prop[Boolean]

Help supporting a react-transition-group/Transition component.

Help supporting a react-transition-group/Transition component.

Attributes

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