Props

io.github.nafg.scalajs.facades.mui.Alert.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 color extends Prop[String]

The color of the component. Unless provided, the value is taken from the severity prop. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

The color of the component. Unless provided, the value is taken from the severity prop. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
color.type
object icon extends Prop[Boolean | VdomNode]

Override the icon displayed before the children. Unless provided, the icon is mapped to the value of the severity prop. Set to false to remove the icon.

Override the icon displayed before the children. Unless provided, the icon is mapped to the value of the severity prop. Set to false to remove the icon.

Attributes

Supertypes
class Prop[Boolean | VdomNode]
class Object
trait Matchable
class Any
Self type
icon.type
object severity extends Prop[String]

The severity of the alert. This defines the color and icon used.

The severity of the alert. This defines the color and icon used.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
severity.type
object variant extends Prop[String]

The variant to use.

The variant to use.

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

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

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

Attributes

def children: Prop[VdomNode]

The content of the component.

The content of the 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 closeText: Prop[String]

Override the default label for the close popup icon button.

Override the default label for the close popup icon button.

For localization purposes, you can use the provided translations.

Attributes

def components: Prop[Object]

The components used for each slot inside.

The components used for each slot inside.

This prop is an alias for the slots prop. It's recommended to use the slots prop instead.

Attributes

def componentsProps: 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.

This prop is an alias for the slotProps prop. It's recommended to use the slotProps prop instead, as componentsProps will be deprecated in the future.

Attributes

def iconMapping: Prop[Object]

The component maps the severity prop to a range of different icons, for instance success to <SuccessOutlined>. If you wish to change this mapping, you can provide your own. Alternatively, you can use the icon prop to override the icon displayed.

The component maps the severity prop to a range of different icons, for instance success to <SuccessOutlined>. If you wish to change this mapping, you can provide your own. Alternatively, you can use the icon prop to override the icon displayed.

Attributes

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

Callback fired when the component requests to be closed. When provided and no action prop is set, a close icon button is displayed that triggers the callback when clicked.

Callback fired when the component requests to be closed. When provided and no action prop is set, a close icon button is displayed that triggers the callback when clicked.

Value parameters

{React.SyntheticEvent}

event The event source of the callback.

Attributes

def role: Prop[String]

The ARIA role attribute of the element.

The ARIA role attribute of the element.

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.

This prop is an alias for the componentsProps prop, which will be deprecated in the future.

Attributes

def slots: Prop[Object]

The components used for each slot inside.

The components used for each slot inside.

This prop is an alias for the components prop, which will be deprecated in the future.

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