View Source Phoenix.UI.Components.Avatar (Phoenix UI v0.1.4)
Provides avatar component.
Link to this section Summary
Functions
Renders avatar component.
Link to this section Functions
@spec avatar(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders avatar component.
examples
Examples
```
<.avatar src={@src} />
```
attributes
Attributes
border
(:boolean
) - Defaults tofalse
.color
(:string
) - Defaults to"slate"
.element
(:string
) - Defaults to"div"
.extend_class
(:string
)rest
(:global
)size
(:string
) - Defaults to"md"
.variant
(:string
) - Defaults to"circular"
.
slots
Slots
inner_block