react-placeholder icon indicating copy to clipboard operation
react-placeholder copied to clipboard

textRow style placeholder with multiple rows

Open m-salamon opened this issue 7 years ago • 2 comments

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 avatar Sep 07 '18 15:09 m-salamon

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>

m-salamon avatar Sep 07 '18 15:09 m-salamon

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

FrancescoCioria avatar Sep 18 '18 16:09 FrancescoCioria