Created
September 14, 2020 14:42
-
-
Save youssof707/8d0898a7cc5467a8d4855eb7aaf33cd2 to your computer and use it in GitHub Desktop.
TouchPoint UI Popups Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {PopupCard, FreeButton, useSystem} from 'touchpoint-ui' | |
| function PopButton(){ | |
| const {Popup} = useSystem() | |
| function clickHandler(){ | |
| Popup.open(<PopupCard title ='TouchPoint UI'> | |
| Hello there! | |
| </PopupCard>) | |
| } | |
| return(<FreeButton onClick={clickHandler}>Open Popup</FreeButton>) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment