AvatarOwnProps

Properties

Link copied to clipboard
abstract var alt: String?

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

Link copied to clipboard
abstract override var children: ReactNode?

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

Link copied to clipboard
abstract var classes: AvatarClasses?

Override or extend the styles applied to the component.

Link copied to clipboard

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.

Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
abstract var sizes: String?

The sizes attribute for the img element.

Link copied to clipboard
abstract var src: String?

The src attribute for the img element.

Link copied to clipboard
abstract var srcSet: String?

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

Link copied to clipboard
abstract override var sx: SxProps<Theme>?

The system prop that allows defining system overrides as well as additional CSS styles.

Link copied to clipboard
abstract var variant: AvatarVariant?

The shape of the avatar.

Functions

Link copied to clipboard
open inline fun <P : Props> child(type: ElementType<P>, props: P)
Link copied to clipboard
open inline operator fun <P : Props> ElementType<P>.invoke()
open inline operator fun <T> ContextType<T>.invoke(noinline block: ProviderProps<T>.() -> Unit)
open inline operator fun <P : Props> ElementType<P>.invoke(noinline block: P.() -> Unit)
open inline operator fun <T> ContextType<T>.invoke(value: T, noinline block: ChildrenBuilder.() -> Unit)
open inline operator fun <T> Provider<T>.invoke(value: T, noinline block: ChildrenBuilder.() -> Unit)
Link copied to clipboard
open inline operator fun Char.unaryPlus()
open inline operator fun String?.unaryPlus()
open inline operator fun ReactNode?.unaryPlus()
open inline operator fun Props?.unaryPlus()