Skip to content

Commit a141835

Browse files
committed
Events
1 parent 40ccef7 commit a141835

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ export const app = createSSRApp(App)
1919
Then, somewhere in your app use the `<modal-stack />` component (automatically
2020
registered) where you want your _modals_ to be mounted.
2121

22+
The `<modal-stack />` component emits a few events, all with a single parameter
23+
indicating whether modals are currently active or not:
24+
25+
* `modalCreated`: emitted every time a modal is created.
26+
* `modalDismissed`: emitted every time a modal is dismissed.
27+
* `modals`: emitted every time a modal is created or dismissed.
28+
2229
A modal component might look like somewhat like this:
2330

2431
```html

0 commit comments

Comments
 (0)