Demo.tsx 814 B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import Notification from '../index';
  3. import Button from '../../button';
  4. const Demo = () => {
  5. return (
  6. <div>
  7. <Button
  8. onClick={ () => Notification.info({
  9. position: 'topRight',
  10. content: 'semi-ui-notification',
  11. title: 'Hi bytedance',
  12. })}>
  13. Basic Notification
  14. </Button>
  15. <Button
  16. onClick={ () => Notification.error({
  17. position: 'bottom',
  18. content: 'semi-ui-notification',
  19. title: 'Hi bytedance',
  20. showClose: false,
  21. })}>
  22. Can Not Close From Bottom
  23. </Button>
  24. </div>
  25. );
  26. };
  27. export default Demo;