Props

io.github.nafg.scalajs.facades.mui.base.FocusTrap.Props
class Props extends WithChildren[Any]

Attributes

Graph
Supertypes
trait WithChildren[Any]
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[Any]

A single child content element.

A single child content element.

Attributes

def disableAutoFocus: Prop[Boolean]

If true, the focus trap will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any focus trap children that have the disableAutoFocus prop.

If true, the focus trap will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any focus trap children that have the disableAutoFocus prop.

Generally this should never be set to true as it makes the focus trap less accessible to assistive technologies, like screen readers.

Attributes

def disableEnforceFocus: Prop[Boolean]

If true, the focus trap will not prevent focus from leaving the focus trap while open.

If true, the focus trap will not prevent focus from leaving the focus trap while open.

Generally this should never be set to true as it makes the focus trap less accessible to assistive technologies, like screen readers.

Attributes

def disableRestoreFocus: Prop[Boolean]

If true, the focus trap will not restore focus to previously focused element once focus trap is hidden or unmounted.

If true, the focus trap will not restore focus to previously focused element once focus trap is hidden or unmounted.

Attributes

def getTabbable: Prop[Any => Any]

Returns an array of ordered tabbable nodes (i.e. in tab order) within the root. For instance, you can provide the "tabbable" npm dependency.

Returns an array of ordered tabbable nodes (i.e. in tab order) within the root. For instance, you can provide the "tabbable" npm dependency.

Value parameters

{HTMLElement}

root

Attributes

def isEnabled: Prop[Any => Any]

This prop extends the open prop. It allows to toggle the open state without having to wait for a rerender when changing the open prop. This prop should be memoized. It can be used to support multiple focus trap mounted at the same time.

This prop extends the open prop. It allows to toggle the open state without having to wait for a rerender when changing the open prop. This prop should be memoized. It can be used to support multiple focus trap mounted at the same time.

Attributes

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

If true, focus is locked.

If true, focus is locked.

Attributes

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