Props

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

Attributes

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

Members list

Concise view

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def alt: Prop[String]

Used in combination with src or srcSet to provide an alt attribute for the rendered img element.

Used in combination with src or srcSet to provide an alt attribute for the rendered img element.

Attributes

def children: Prop[VdomNode]

Used to render icon or text elements inside the Avatar if src is not set. This can be an element, or just a string.

Used to render icon or text elements inside the Avatar if src is not set. This can be an element, or just a string.

Attributes

def classes: Prop[Any]

Override or extend the styles applied to the component. See CSS API below for more details.

Override or extend the styles applied to the component. See CSS API below for more details.

Attributes

def component: Prop[ElementType]

The component used for the root node. Either a string to use a HTML element or a component.

The component used for the root node. Either a string to use a HTML element or a component.

Attributes

def imgProps: Prop[Object]

Attributes applied to the img element if the component is used to display an image. It can be used to listen for the loading error event.

Attributes applied to the img element if the component is used to display an image. It can be used to listen for the loading error event.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def sizes: Prop[String]

The sizes attribute for the img element.

The sizes attribute for the img element.

Attributes

def src: Prop[String]

The src attribute for the img element.

The src attribute for the img element.

Attributes

def srcSet: Prop[String]

The srcSet attribute for the img element. Use this attribute for responsive image display.

The srcSet attribute for the img element. Use this attribute for responsive image display.

Attributes

def style: Prop[Object]
def variant: Prop[Any]

The shape of the avatar.

The shape of the avatar.

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