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

Type members

Classlikes

object variant extends Prop[String]

The shape of the avatar.

The shape of the avatar.

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 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[Object]

Override or extend the styles applied to the component.

Override or extend the styles applied to the component.

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 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