File tree Expand file tree Collapse file tree 3 files changed +32
-32
lines changed
app/components/content/examples Expand file tree Collapse file tree 3 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<UAvatarGroup >
3
- <UChip inset color =" success" >
4
- <UAvatar
5
- src =" https://github.com/benjamincanac.png"
6
- alt =" Benjamin Canac"
7
- />
8
- </UChip >
3
+ <UAvatar
4
+ src =" https://github.com/benjamincanac.png"
5
+ alt =" Benjamin Canac"
6
+ :chip =" { inset: true, color: 'success' }"
7
+ />
9
8
10
- <UChip inset color =" warning" >
11
- <UAvatar
12
- src =" https://github.com/romhml.png"
13
- alt =" Romain Hamel"
14
- />
15
- </UChip >
9
+ <UAvatar
10
+ src =" https://github.com/romhml.png"
11
+ alt =" Romain Hamel"
12
+ :chip =" { inset: true, color: 'warning' }"
13
+ />
16
14
17
- <UChip inset color =" error" >
18
- <UAvatar
19
- src =" https://github.com/noook.png"
20
- alt =" Neil Richter"
21
- />
22
- </UChip >
15
+ <UAvatar
16
+ src =" https://github.com/noook.png"
17
+ alt =" Neil Richter"
18
+ :chip =" { inset: true, color: 'error' }"
19
+ />
23
20
</UAvatarGroup >
24
21
</template >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -84,6 +84,23 @@ props:
84
84
The ` alt ` prop is passed to the ` img ` element as the ` alt ` attribute.
85
85
::
86
86
87
+ ### Chip
88
+
89
+ Use the ` chip ` prop to display a chip around the Avatar.
90
+
91
+ :: component-code
92
+ ---
93
+ prettier: true
94
+ ignore:
95
+ - src
96
+ - chip.inset
97
+ props:
98
+ src: 'https://github.com/benjamincanac.png '
99
+ chip:
100
+ inset: true
101
+ ---
102
+ ::
103
+
87
104
## Examples
88
105
89
106
### With tooltip
@@ -92,12 +109,6 @@ You can use a [Tooltip](/components/tooltip) component to display a tooltip when
92
109
93
110
: component-example { name =" avatar-tooltip-example " }
94
111
95
- ### With chip
96
-
97
- You can use a [ Chip] ( /components/chip ) component to display a chip around the Avatar.
98
-
99
- : component-example { name =" avatar-chip-example " }
100
-
101
112
## API
102
113
103
114
### Props
You can’t perform that action at this time.
0 commit comments