Skip to content

Commit 217e1bc

Browse files
committed
Adds web component JSDoc to popover
1 parent dfdc5ad commit 217e1bc

File tree

1 file changed

+17
-0
lines changed
  • src/webviews/apps/shared/components/overlays

1 file changed

+17
-0
lines changed

src/webviews/apps/shared/components/overlays/popover.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@ declare global {
4949
}
5050
}
5151

52+
/**
53+
* @tag gl-popover
54+
*
55+
* @slot anchor - The element that triggers the popover
56+
* @slot content - The content of the popover
57+
*
58+
* @csspart base - Styles the sl-popup element itself
59+
* @csspart arrow - Styles the arrow's container
60+
* @csspart popup - Styles the popup's container
61+
* @csspart body - Styles the element that wraps the content slot
62+
*
63+
* @fires gl-popover-show - Fired when the popover is shown
64+
* @fires gl-popover-after-show - Fired after the popover is shown
65+
* @fires gl-popover-hide - Fired when the popover is hidden
66+
* @fires gl-popover-after-hide - Fired after the popover is hidden
67+
*/
68+
5269
@customElement('gl-popover')
5370
export class GlPopover extends GlElement {
5471
static override shadowRootOptions: ShadowRootInit = {

0 commit comments

Comments
 (0)