# Dom.toggleState

Reads the standards-based `ToggleEvent.newState` value when present.

## Signatures

```ts
export declare function toggleState(event: Event): "open" | "closed" | undefined;
```

## Why

Popover and details components can follow the browser's real toggle event
while remaining usable with DOM libraries whose Event types lag the platform.

## Ownership and lifetime

Pure read of the current event; no state or listener is retained.
