# RootEvents.rootEvents

Installs scoped native bubbling listeners on a root.
Undefined options inherit CurrentRootEvents, records override inherited
event names individually, and false disables the inherited policy entirely.

Only stopPropagation is called. Target handlers, other listeners on this same
root, and browser default actions remain available. Ancestor capture handlers
have already run; events that do not bubble to the root are not intercepted.
This is an event bubbling policy, not a security or complete event-isolation
boundary. Each listener is removed when the calling Scope closes.

## Signatures

```ts
export declare const rootEvents: (root: EventTarget, options?: RootEventOptions | undefined) => Effect.Effect<void, never, Scope.Scope>;
```


