Avatar
BsAvatar is a component which are typically used to display a user profile as a picture, icon, or short text. The BsAvatar component provides several properties for customizing its appearance such as size and roundness.
Overview
BsAvatar is a lightweight component, which render inline by default, so that are vertically centered beside any adjoining plain text. It also can be used as children of other components.

Styling
Shape
<bs-avatar>
component comes with three predefined shape style: Circle, Rounded and Square (default). Example below will shows you how to enable Circle and Rounded shape.


Border
<bs-avatar>
can also have border. Use border
property and border-color
property to adjust border thickness and its color.


Sizes
By default <bs-avatar>
size is 48px
. You can change the size of the <bs-avatar>
by changing the size
property explicitly. Numbers will get converted to pixel. Any other value must include the units (such as px
, em
, or rem
). You can also create an avatar with different height and width by explicitly define the height
and width
property.


Animation
You can apply animation such as spin or pulse on avatar icon. Because actually BsAvatar uses BsIcon internally.
Usage Example
The following is an example that demonstrate more advanced use of the <bs-avatar>
.
Inside Other Component
<bs-avatar>
can also be used inside other component. Example below, shows you how to use <bs-avatar>
inside BsListTile component.
