4.1.0 • Published 11 months ago
@forter/avatar v4.1.0
fc-avatar
Avatar circular element they used to represent person or an object. Can represent either an image or an initial.
Usage
<script>
import '@forter/avatar';
</script>
<fc-avatar>
</fc-avatar>Examples
<!-- Avatar Badge -->
<fc-avatar>
<fc-button icon="close" style="--fc-icon-size: 13px; --fc-button-background-color: black; --fc-button-color: white;" slot="badge"></fc-button>
</fc-avatar>Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
abbr | abbr | string | two chars in the generated avatar. | |
alt | alt | string | "User Avatar" | alternative text for accessibility. example: with |
showRawText | showRawText | boolean | ||
src | src | string | URL of avatar image can be png or svg. example: https://www.w3schools.com/w3images/avatar2.png |
Slots
| Name | Description |
|---|---|
| avatar badge element. |
CSS Custom Properties
| Property | Description |
|---|---|
--fc-avatar-background-color | the color. default: transparent, example: gold |
--fc-avatar-font-size | abbr font size. default: 3em, example: 18px |
--fc-avatar-hover-background-color | the color. default: var(--fc-gray-300), example: var(--fc-red-100) |
--fc-avatar-size | height and width. default: 48px, example: 96px |
4.1.0
11 months ago
4.0.12
3 years ago
4.0.11
4 years ago
4.0.10
4 years ago
4.0.9
4 years ago
4.0.8
6 years ago
4.0.7
6 years ago
4.0.6
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.4
6 years ago
3.0.3
6 years ago
3.0.2
6 years ago
3.0.0
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.1-beta.292
6 years ago
1.0.1-beta.262
6 years ago
1.0.1-beta.247
6 years ago
1.0.1-beta.245
6 years ago
1.0.1-beta.229
6 years ago
1.0.0
7 years ago
1.0.0-alpha.1
7 years ago
1.0.0-alpha.0
7 years ago