/react-fancy-input

React dynamic input placeholder component. You put an array of texts and it progressively displays placeholder one by one

Primary LanguageJavaScriptMIT LicenseMIT

react-fancy-input

Inspiration

Demo

props

Accepts any props passed from parent component

Prop Name type default
texts array(string) null
delay number(in millisecond) 200
cursor string |

Usage

import Input from 'react-fancy-input'

const placeholders = ['Search for book', 'Search by author', 'Search by publisher']

/* ... */

<Input texts={placeholders}/>