2.1.0 • Published 3 years ago

react-appear-in v2.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

React Appear In

Make react components appear sometime in the future

npm version

Install

npm install react-appear-in 

Usage

import AppearIn from 'react-appear-in';

const MyAwesomeComponent = () => (
  <AppearIn 
    minutes={1} 
    seconds={20} 
    milliseconds={10}
    placeholder={(time) => <div>{`Will appear in ${time}ms`}</div>}
  >
    Hello after 1 minute, 20 seconds and 10 milliseconds
  </AppearIn>
);

Props

NameTypeRequired
minutesnumberno
secondsnumberno
millisecondsnumberno
placeholder(time: number) => ReactNodeno

When nothing is provided, children will appear immediately.

Demo

Give it a try here.

2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago