button.stories.tsx 588 B

12345678910111213141516171819202122232425
  1. /**
  2. * Example story for styling a button.
  3. */
  4. import '@jupyterlab/application/style/index.css';
  5. import '@jupyterlab/theme-light-extension/style/index.css';
  6. import { action } from '@storybook/addon-actions';
  7. import React from 'react';
  8. import { Button } from '../src';
  9. export default {
  10. // component: Button,
  11. title: 'Button'
  12. };
  13. export const text = () => (
  14. <Button onClick={action('clicked')}>Hello Button</Button>
  15. );
  16. export const emoji = () => (
  17. <Button onClick={action('clicked')}>
  18. <span role="img" aria-label="so cool">
  19. 😀 😎 👍 💯
  20. </span>
  21. </Button>
  22. );