Props

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

Spacing between avatars.

Spacing between avatars.

Attributes

Supertypes
class Prop[String | Double]
class Object
trait Matchable
class Any
Self type
spacing.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 children: Prop[VdomNode]

The avatars to stack.

The avatars to stack.

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 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 max: Prop[Any]

Max avatars to show before +x.

Max avatars to show before +x.

Attributes

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

custom renderer of extraAvatars

custom renderer of extraAvatars

Value parameters

{number}

surplus number of extra avatars

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 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 total: Prop[Double]

The total number of avatars. Used for calculating the number of extra avatars.

The total number of avatars. Used for calculating the number of extra avatars.

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