A popup-dialog component
<Dialog
title='Hello, Goodbye'
onOpen={() => alert('I say hello')}
onClose={() => alert('You say goodbye')}
>
<Text>Hello, hello...</Text>
</Dialog>
<Dialog onClose={() => alert('You say goodbye')}>
<Text>Hello, hello...</Text>
</Dialog>
Prop | Type | Note |
---|---|---|
title | String | Optional. If not passed, the component will ignore the title. |
onOpen | Function | Optional. Callback will be called after the Dialog opens. |
onClose | Function | Optional. Call will be called after Dialog closes. |