yarn add @twilio-paste/avatar - or - yarn add @twilio-paste/core
import {Avatar, AvatarGroup} from '@twilio-paste/core/avatar';
const AvatarExample = () => {
return (
<AvatarGroup size="sizeIcon70" variant="user">
<Avatar name="Aayush Iyer" />
<Avatar name="Simon Taggart" />
<Avatar name="Sarah Li" />
<Avatar name="Shadi Isber" />
</AvatarGroup>
);
};
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
name RequiredRequired
- Type
string
icon
- Type
FC<any>
size
- Type
any
src
- Type
string
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.