1. import { Notification, Button } from 'uskin';
    2. const notices = [{
    3. title: 'Note:',
    4. content: 'I am a success notification',
    5. type: 'success',
    6. showIcon: true,
    7. isAutoHide: true,
    8. width: 300,
    9. id: 1
    10. }, {
    11. title: 'Note:',
    12. content: 'I am a warning notification',
    13. type: 'warning',
    14. showIcon: true,
    15. isAutoHide: true,
    16. width: 300,
    17. id: 2
    18. }, {
    19. title: 'Note:',
    20. content: 'A classification of architectural styles for network-based application software by the architectural properties they would induce when applied to the architecture for a distributed hypermedia system',
    21. type: 'danger',
    22. showIcon: true,
    23. isAutoHide: true,
    24. width: 300,
    25. id: 3
    26. }];
    27. ReactDOM.render(<div>
    28. <Button
    29. value="Success"
    30. type="create"
    31. onClick={showNotification.bind(this, notices[0])} />
    32. <Button
    33. value="Warning"
    34. type="warning"
    35. onClick={showNotification.bind(this, notices[1])} />
    36. <Button
    37. value="Danger"
    38. type="delete"
    39. onClick={showNotification.bind(this, notices[2])} />
    40. </div>, mountNode);