Skip to content

Commit 7a0a1b9

Browse files
committed
docs(guide): added details on using avatar with menu
1 parent 6047a0e commit 7a0a1b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/guide/components/avatar.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import api from '@anu/component-meta/AAvatar.json';
55
# Avatar
66

77
<!-- 👉 Default -->
8-
::::card Default
8+
:::::card Default
99

1010
Default variant for avatar is `light`.
1111

@@ -15,8 +15,18 @@ Use `color` prop to change the avatar color.
1515
<<< @/components/demos/avatar/DemoAvatarDefault.vue
1616
:::
1717

18+
::::after-demo
19+
20+
:::details Using with `AMenu` component
21+
If you use `AMenu` component along with `AAvatar` then you will use default slot of `AAvatar` component to show menu. Hence, some of the props will get discarded in favor of default slot usage.
22+
23+
You can refer to list of discarded props when default slot is used in API section.
24+
:::
25+
1826
::::
1927

28+
:::::
29+
2030
<!-- 👉 Fill -->
2131
::::card Fill
2232

0 commit comments

Comments
 (0)