buildo / react-placeholder

A React component to easily replicate your page with nice placeholders while the content is loading
MIT License
1.61k stars 97 forks source link

textRow style placeholder with multiple rows #77

Open m-salamon opened 6 years ago

m-salamon commented 6 years ago

I want the textRow style with with multiple rows . Why cant this be done, I dont see it in the documentation but there should be a feature to do this.

<ReactPlaceholder type='textRow' rows={10} ready={false}>
     <MyComponent/> 
</ReactPlaceholder>
m-salamon commented 6 years ago

This is the solution for what I want to do

<ReactPlaceholder ready={false} customPlaceholder={[0,1,2,3,4,5,6,7,8,9].map(i => <ReactPlaceholder type='textRow' />)} >
     <MyComponent/>
</ReactPlaceholder>
FrancescoCioria commented 6 years ago

Hi @m-salamon have you tried type="text"? I think that's what you're looking for