Props

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

Attributes

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

Members list

Type members

Classlikes

object transitionDuration extends Prop[String | Double | Object]

The length of the transition in ms, or 'auto'

The length of the transition in ms, or 'auto'

Attributes

Supertypes
class Prop[String | Double | Object]
class Object
trait Matchable
class Any
Self type
object variant extends Prop[String]

The variant to use. Use menu to prevent selected items from impacting the initial focus.

The variant to use. Use menu to prevent selected items from impacting the initial focus.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
variant.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 PopoverClasses: Prop[Object]

classes prop applied to the Popover element.

classes prop applied to the Popover element.

Attributes

def TransitionProps: Prop[Object]

Props applied to the transition element. By default, the element is based on this Transition component.

Props applied to the transition element. By default, the element is based on this Transition component.

Attributes

def anchorEl: Prop[Element | Object => Element]

An HTML element, or a function that returns one. It's used to set the position of the menu.

An HTML element, or a function that returns one. It's used to set the position of the menu.

Attributes

def autoFocus: Prop[Boolean]

If true (Default) will focus the [role="menu"] if no focusable child is found. Disabled children are not focusable. If you set this prop to false focus will be placed on the parent modal container. This has severe accessibility implications and should only be considered if you manage focus otherwise.

If true (Default) will focus the [role="menu"] if no focusable child is found. Disabled children are not focusable. If you set this prop to false focus will be placed on the parent modal container. This has severe accessibility implications and should only be considered if you manage focus otherwise.

Attributes

def children: Prop[VdomNode]

Menu contents, normally MenuItems.

Menu contents, normally MenuItems.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component.

Override or extend the styles applied to the component.

Attributes

def disableAutoFocusItem: Prop[Boolean]

When opening the menu will not focus the active item but the [role="menu"] unless autoFocus is also set to false. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications.

When opening the menu will not focus the active item but the [role="menu"] unless autoFocus is also set to false. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onClose: Prop[(ReactEvent, String) => Callback]

Callback fired when the component requests to be closed.

Callback fired when the component requests to be closed.

Value parameters

{object}

event The event source of the callback.

{string}

reason Can be: "escapeKeyDown", "backdropClick", "tabKeyDown".

Attributes

def open: Prop[Boolean]

If true, the component is shown.

If true, the component is shown.

Attributes

def slotProps: Prop[Object]

The extra props for the slot components. You can override the existing props or add new ones.

The extra props for the slot components. You can override the existing props or add new ones.

Attributes

def slots: Prop[Object]

The components used for each slot inside.

The components used for each slot inside.

Attributes

def style: Prop[Object]
def sx: Prop[Seq[Any => Any | Object | Boolean] | Any => Any | Object]

The system prop that allows defining system overrides as well as additional CSS styles.

The system prop that allows defining system overrides as well as additional CSS styles.

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