# EventHandlerInput

Effect or `EventHandler` accepted for one real DOM event.

## Signatures

```ts
export type EventHandlerInput<Ev extends Event = Event, E = any, R = any> = Effect.Effect<unknown, E, R> | EventHandler.EventHandler<Ev, E, R> | null | undefined;
```

## Why

Components can accept a simple Effect or preserve listener options through
`EventHandler` without wrapping browser events in synthetic objects.

## Ownership and lifetime

The template Scope installs/removes the listener; an AbortSignal or `once`
option may end the handler sooner.
