structyl

Click-Away Listener API

View component

The full prop reference for the Click-Away Listener component. Calls a handler when interaction happens outside its child.

Import

tsx
import { Click-AwayListener } from '@structyl/styled';

Props

ClickAwayListener

Outside interaction observer.

PropTypeDefault
onClickAway#(event: MouseEvent | TouchEvent) => void

Called when the user interacts outside the child.

children#React.ReactNode

Observed child.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library