1.1.8 • Published 9 months ago
@brighthr/component-avatar v1.1.8
Avatar
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-avatar
To implement the Avatar component into your project you’ll need to add the import:
import Avatar from '@brighthr/component-avatar';
After adding import into your project you can use it simply like:
<Avatar />
Props
Name | Type | Default | Description |
---|---|---|---|
imageHref | string | Sets the src attribute for the <img /> . | |
name | string | Sets the initials to be shown if no imageHref is provided. Also sets image alt and tooltip on hover. | |
presence | 'in' 'out' 'absent' | Sets a different colored circle at the bottom of the avatar. | |
size | 'xxs' 'xs' 'sm' 'base' 'lg' 'xl' 'xxl' | Sets the size of the avatar. |
1.1.8
9 months ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
0.0.32
2 years ago
0.0.25
2 years ago
0.0.30
2 years ago
0.0.31
2 years ago
0.0.26
2 years ago
0.0.27
2 years ago
0.0.28
2 years ago
0.0.29
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.24
2 years ago
0.0.19
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago