Props

io.github.nafg.scalajs.facades.mui.Snackbar.Props
class Props extends WithChildren[VdomElement]

Attributes

Graph
Supertypes
trait WithChildren[VdomElement]
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 ClickAwayListenerProps: Prop[Object]

Props applied to the ClickAwayListener element.

Props applied to the ClickAwayListener element.

Attributes

def ContentProps: Prop[Object]

Props applied to the SnackbarContent element.

Props applied to the SnackbarContent element.

Attributes

def TransitionComponent: Prop[ElementType]

The component used for the transition. Follow this guide to learn more about the requirements for this component.

The component used for the transition. Follow this guide to learn more about the requirements for this component.

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 action: Prop[VdomNode]

The action to display. It renders after the message, at the end of the snackbar.

The action to display. It renders after the message, at the end of the snackbar.

Attributes

def anchorOrigin: Prop[Object]

The anchor of the Snackbar. On smaller screens, the component grows to occupy all the available width, the horizontal alignment is ignored.

The anchor of the Snackbar. On smaller screens, the component grows to occupy all the available width, the horizontal alignment is ignored.

Attributes

def autoHideDuration: Prop[Double]

The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar. This behavior is disabled by default with the null value.

The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar. This behavior is disabled by default with the null value.

Attributes

def children: Prop[VdomElement]

Replace the SnackbarContent component.

Replace the SnackbarContent component.

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

If true, the autoHideDuration timer will expire even if the window is not focused.

If true, the autoHideDuration timer will expire even if the window is not focused.

Attributes

def message: Prop[VdomNode]

The message to display.

The message to display.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onClose: Prop[Any => Any]

Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.

Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.

Value parameters

{React.SyntheticEvent<any>

| Event} event The event source of the callback.

{string}

reason Can be: "timeout" (autoHideDuration expired), "clickaway", or "escapeKeyDown".

Attributes

def open: Prop[Boolean]

If true, the component is shown.

If true, the component is shown.

Attributes

def resumeHideDuration: Prop[Double]

The number of milliseconds to wait before dismissing after user interaction. If autoHideDuration prop isn't specified, it does nothing. If autoHideDuration prop is specified but resumeHideDuration isn't, we default to autoHideDuration / 2 ms.

The number of milliseconds to wait before dismissing after user interaction. If autoHideDuration prop isn't specified, it does nothing. If autoHideDuration prop is specified but resumeHideDuration isn't, we default to autoHideDuration / 2 ms.

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

def transitionDuration: Prop[Double | Object]

The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.

The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.

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