React Funny

View project on GitHub

React Funny will give you a nice looking and funny loading message for any situation, picking from a pre-selected list of funny (or, well, maybe not) so funny phrases. If you're going to make a user wait, at least make them laugh!

npm install react-funny



Sane Defaults
<Loading />
A Title
<Loading title="Loading all the things..." />
A title and a message
<Loading title="Putting out the fires" message="This could take a while..." />
Make me small, medium, or large.
<Loading size="sm" />
<Loading size="md" />
<Loading size="lg" />
Suggested CSS to style this component, similar to the above styling:
.loading {
  color: #777777;
  text-align: center;
}
.loading.loading-sm h1 {
  font-size: 1.6em;
  margin-top: 0.5em;
}
.loading.loading-sm p {
  font-size: 0.85em;
}
.loading.loading-md h1 {
  font-size: 2em;
  margin-top: 0.5em;
}
.loading.loading-md p {
  font-size: 1em;
}
.loading.loading-lg h1 {
  font-size: 2.4em;
  margin-top: 0.5em;
}
.loading.loading-lg p {
  font-size: 1.2em;
}