Created
February 20, 2019 23:21
-
-
Save MykolaGolubyev/d24498a59593a3baf1b863a86ee352e0 to your computer and use it in GitHub Desktop.
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 * as React from 'react'; | |
import { Registry, simpleAction } from 'react-component-viewer'; | |
import { Button } from './Button'; | |
const onClick = simpleAction('clicked'); | |
export function buttonsDemo(registry: Registry) { | |
registry | |
.add('primary button', () => ( | |
<Button label="click me" onClick={onClick}/> | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment