0.1.1 • Published 6 years ago

react-sad-cat v0.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

React Sad Cat

Snackbar like notification appearing in bottom left corner with customizable message.

Installing

npm install react-sad-cat

Using

Just add it in any component, preferably under some conditional controlling when it should appear.

import * as React from 'react';
import { SadCat } from 'react-sad-cat';

class MyComponent extends React.Component {
  render() {
    return (
      <div>
        <SadCat duration={2000} message={'I am so saaad'}/>
      </div>
    );
  }
}

Props

NameTypeRequiredDescription
durationintegeryesTime until Sad Cat disappears (in ms)
messagestringnoOptional message in block under Sad Cat
0.1.1

6 years ago

0.1.0

6 years ago