Files
talk/client/coral-ui/components/SnackBar.js
T
Belen Curcio 0881201465 Notification
2017-01-30 20:00:01 -03:00

17 lines
392 B
JavaScript

import React from 'react';
import styles from './SnackBar.css';
const SnackBar = ({children, className, position, ...attrs}) => {
return (
<div className={`${styles.SnackBar} ${className}`}
style={ position ? {top: `${position}px`} : fixedStyle}
{...attrs} >
{children}
</div>
);
};
const fixedStyle = {bottom: '200px', top: 'auto'};
export default SnackBar;