diff --git a/docs/docs/controllers/presence_controller.mdx b/docs/docs/controllers/presence_controller.mdx new file mode 100644 index 00000000..7ac76132 --- /dev/null +++ b/docs/docs/controllers/presence_controller.mdx @@ -0,0 +1,54 @@ +--- +id: PresenceController +title: PresenceController +--- + +import NoActions from "../_partials/no-actions.md"; +import NoTargets from "../_partials/no-targets.md"; +import NoClasses from "../_partials/no-classes.md"; +import NoValues from "../_partials/no-values.md"; + +## Purpose + +A utility controller to wire up other stimulus actions when an element comes into or leaves the document. + + +## [Actions](https://stimulus.hotwire.dev/reference/actions) + + + +## [Targets](https://stimulus.hotwire.dev/reference/targets) + + + + +## [Classes](https://stimulus.hotwire.dev/reference/classes) + + + + +## [Values](https://stimulus.hotwire.dev/reference/values) + + + + +## Events + +| Event | When | Dispatched on | `event.detail` | +| --- | --- | --- |--- | +|`presence:added` | When the element enters the DOM | the controller root element | - | +|`presence:removed` | When the element leaves the DOM | the controller root element | - | + +## Side Effects + +None + +## How to Use + +