diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index c0fd7ebd..b307e9a8 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -2639,14 +2639,15 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :----------- | :--------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------ | ------------------------------------------------- |
-| open | let
| No | boolean
| false
| Set to `true` to display the popover |
-| caret | let
| No | boolean
| false
| Set to `true` render a caret |
-| align | let
| No | "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-bottom" | "right-top"
| "top"
| Specify the alignment of the caret |
-| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
-| highContrast | let
| No | boolean
| false
| Set to `true` to enable the high contrast variant |
-| relative | let
| No | boolean
| false
| Set to `true` to use a relative position |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :------------------ | :--------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------ | ------------------------------------------------------ |
+| open | let
| Yes | boolean
| false
| Set to `true` to display the popover |
+| closeOnOutsideClick | let
| No | boolean
| false
| Set to `true` to close the popover on an outside click |
+| caret | let
| No | boolean
| false
| Set to `true` render a caret |
+| align | let
| No | "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-bottom" | "right-top"
| "top"
| Specify the alignment of the caret |
+| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
+| highContrast | let
| No | boolean
| false
| Set to `true` to enable the high contrast variant |
+| relative | let
| No | boolean
| false
| Set to `true` to use a relative position |
### Slots
@@ -2656,7 +2657,9 @@ None.
### Events
-None.
+| Event name | Type | Detail |
+| :------------ | :--------- | :----- |
+| click:outside | dispatched | -- |
## `ProgressIndicator`
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 6a82283f..9da9b198 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -6800,6 +6800,16 @@
"value": "false",
"isFunction": false,
"constant": false,
+ "reactive": true
+ },
+ {
+ "name": "closeOnOutsideClick",
+ "kind": "let",
+ "description": "Set to `true` to close the popover on an outside click",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "constant": false,
"reactive": false
},
{
@@ -6854,7 +6864,7 @@
}
],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
- "events": [],
+ "events": [{ "type": "dispatched", "name": "click:outside" }],
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
},
diff --git a/docs/src/pages/components/Popover.svx b/docs/src/pages/components/Popover.svx
index 1a722a93..1619efb2 100644
--- a/docs/src/pages/components/Popover.svx
+++ b/docs/src/pages/components/Popover.svx
@@ -14,7 +14,7 @@ By default, the position of the popover component is absolute.
-### Relative
+### Relative position
Set `relative` to `true` to use a relative position.
@@ -25,6 +25,16 @@ Set `relative` to `true` to use a relative position.
+### Close on outside click
+
+Set `closeOnOutsideClick` to set `open` to `false` when clicking outside of the popover.
+
+