Click-Away Listener API
View componentThe 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.
| Prop | Type | Default |
|---|---|---|
| onClickAway# | (event: MouseEvent | TouchEvent) => voidCalled when the user interacts outside the child. | — |
| children# | React.ReactNodeObserved child. | — |
Source code
If you didn't find what you need here, read the component implementation .