You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/components/avatar-stack.md
+20
Original file line number
Diff line number
Diff line change
@@ -115,3 +115,23 @@ interface Props {
115
115
]"
116
116
/>
117
117
```
118
+
119
+
### `:tooltip`
120
+
121
+
Whether to display a tooltip when hovering over the component. You can also pass an object with the `position` property to define the position of the tooltip. The default position is `top`. The tooltip will display the name of the user if provided.
Copy file name to clipboardexpand all lines: docs/components/avatar.md
+14
Original file line number
Diff line number
Diff line change
@@ -80,3 +80,17 @@ interface Props {
80
80
```vue-html
81
81
<SAvatar name="John Doe" />
82
82
```
83
+
84
+
### `:tooltip`
85
+
86
+
When set to `true`, a tooltip showing the name will be displayed when hovering over the avatar. You can also pass an object to define the position of the tooltip.
Copy file name to clipboardexpand all lines: docs/components/tooltip.md
+18
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,24 @@ interface Props {
70
70
</STooltip>
71
71
```
72
72
73
+
### `:triggerTag`
74
+
75
+
Defines the HTML tag for the trigger element. Any value passed to this prop will used as `<component :is="triggerTag">`. The default tag for the trigger element is `span`.
76
+
77
+
```ts
78
+
interfaceProps {
79
+
triggerTag?:string
80
+
}
81
+
```
82
+
83
+
```vue-html
84
+
<STooltip triggerTag="div" text="...">
85
+
...
86
+
</STooltip>
87
+
```
88
+
89
+
Note that setting this to something other than `span` is required when you want to put block elements within the trigger element.
0 commit comments