@@ -4,8 +4,8 @@ import styles from './avatar.style.js';
4
4
5
5
/**
6
6
* ### Example
7
- *
8
- *
7
+ *
8
+ *
9
9
* ##### Simple
10
10
*
11
11
* ```html
@@ -30,36 +30,36 @@ import styles from './avatar.style.js';
30
30
*
31
31
* @slot - The default slot to use when image is not present.
32
32
*
33
- * @prop {string } label - A label to use to describe the avatar to assistive devices.
34
- * @prop {string } image - The image source to use for the avatar.
35
- * @prop {'eager' | 'lazy' } [loading= 'eager'] - Indicates how the browser should load the image.
36
- * @prop {'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' } [size= 'medium'] - The size of the avatar.
33
+ * @prop {` string` } [` label`=`''`] - A label to use to describe the avatar to assistive devices.
34
+ * @prop {` string` } [` image`=`''`] - The image source to use for the avatar.
35
+ * @prop {` 'eager'` \| ` 'lazy'` } [` loading`=` 'eager'` ] - Indicates how the browser should load the image.
36
+ * @prop {` 'xSmall'` \| ` 'small'` \| ` 'medium'` \| ` 'large'` \| ` 'xLarge'` } [` size`=` 'medium'` ] - The size of the avatar.
37
37
*
38
- * @csspart avatar - The container that wraps the avatar component.
39
- * @csspart placeholder - The container that wraps the avatar's placeholder.
40
- * @csspart image - The avatar image. Only shown when the image is present.
38
+ * @csspart ` avatar` - The container that wraps the avatar component.
39
+ * @csspart ` placeholder` - The container that wraps the avatar's placeholder.
40
+ * @csspart ` image` - The avatar image. Only shown when the image is present.
41
41
*
42
- * @cssprop [--tap-avatar-background-color= --tap-sys-color-surface-secondary]
43
- * @cssprop [--tap-avatar-border-color= --tap-sys-color-border-primary]
44
- * @cssprop [--tap-avatar-border-radius= --tap-sys-radius-full]
42
+ * @cssprop [` --tap-avatar-background-color`=` --tap-sys-color-surface-secondary` ]
43
+ * @cssprop [` --tap-avatar-border-color`=` --tap-sys-color-border-primary` ]
44
+ * @cssprop [` --tap-avatar-border-radius`=` --tap-sys-radius-full` ]
45
45
*
46
- * @cssprop [--tap-avatar-width-xxSmall= --tap-sys-spacing-8]
47
- * @cssprop [--tap-avatar-height-xxSmall= --tap-sys-spacing-8]
46
+ * @cssprop [` --tap-avatar-width-xxSmall`=` --tap-sys-spacing-8` ]
47
+ * @cssprop [` --tap-avatar-height-xxSmall`=` --tap-sys-spacing-8` ]
48
48
*
49
- * @cssprop [--tap-avatar-width-xSmall= --tap-sys-spacing-9]
50
- * @cssprop [--tap-avatar-height-xSmall= --tap-sys-spacing-9]
49
+ * @cssprop [` --tap-avatar-width-xSmall`=` --tap-sys-spacing-9` ]
50
+ * @cssprop [` --tap-avatar-height-xSmall`=` --tap-sys-spacing-9` ]
51
51
*
52
- * @cssprop [--tap-avatar-width-small= --tap-sys-spacing-10]
53
- * @cssprop [--tap-avatar-height-small= --tap-sys-spacing-10]
52
+ * @cssprop [` --tap-avatar-width-small`=` --tap-sys-spacing-10` ]
53
+ * @cssprop [` --tap-avatar-height-small`=` --tap-sys-spacing-10` ]
54
54
*
55
- * @cssprop [--tap-avatar-width-medium= --tap-sys-spacing-11]
56
- * @cssprop [--tap-avatar-height-medium= --tap-sys-spacing-11]
55
+ * @cssprop [` --tap-avatar-width-medium`=` --tap-sys-spacing-11` ]
56
+ * @cssprop [` --tap-avatar-height-medium`=` --tap-sys-spacing-11` ]
57
57
*
58
- * @cssprop [--tap-avatar-width-large= 56px]
59
- * @cssprop [--tap-avatar-height-large= 56px]
58
+ * @cssprop [` --tap-avatar-width-large`=` 56px` ]
59
+ * @cssprop [` --tap-avatar-height-large`=` 56px` ]
60
60
*
61
- * @cssprop [--tap-avatar-width-xLarge= 72px]
62
- * @cssprop [--tap-avatar-height-xLarge= 72px]
61
+ * @cssprop [` --tap-avatar-width-xLarge`=` 72px` ]
62
+ * @cssprop [` --tap-avatar-height-xLarge`=` 72px` ]
63
63
*/
64
64
@customElement ( 'tap-avatar' )
65
65
export class TapAvatar extends Avatar {
0 commit comments