Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 751 Bytes

dialog.md

File metadata and controls

46 lines (30 loc) · 751 Bytes

Dialog

A popup-dialog component


Usage

<Dialog
    title='Hello, Goodbye'
    onOpen={() => alert('I say hello')}
    onClose={() => alert('You say goodbye')}
>
    <Text>Hello, hello...</Text>
</Dialog>


Usage (without title)

<Dialog onClose={() => alert('You say goodbye')}>
    <Text>Hello, hello...</Text>
</Dialog>


Props

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.

Go back to index