---
name: ClickOutside
---

import {Playground, PropsTable} from 'docz'

import ClickOutside from '.'
import Button from '../Button'

# ClickOutside

<Playground>
  <Button use={ClickOutside} onClickOutside={() => alert('Clicked outside!')} style={{backgroundColor: 'yellow'}}>Try clicking outside of yellow box</Button>
</Playground>
