react-responsive-carousel icon indicating copy to clipboard operation
react-responsive-carousel copied to clipboard

Allow render props as custom status, instead of only string

Open GeorgeWL opened this issue 4 years ago • 12 comments

Use Case:

want

<div className='imageCount>
      <i className='icon-camera'  />
      <p>{`${current} / ${total}`}</p>
 </div>

as the status of the carousel, but with current behaviour this isn't possible, except by using css to absolute position said icon inline with where the library currently places the status indicator string.

GeorgeWL avatar May 15 '20 14:05 GeorgeWL

I second that, I don't like the fact that we have to use the external controls just to be able to style de status. In my case, I only needed to add a span inside of the paragraph.

<p className="carousel-status">
    {current} <span className="carousel-status__devider></span> {total}
</p>

Seeila avatar Jun 06 '20 13:06 Seeila

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 02 '21 05:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 29 '21 15:12 stale[bot]

not stale

GeorgeWL avatar Jan 01 '22 03:01 GeorgeWL

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 01 '22 06:07 stale[bot]

not stale

GeorgeWL avatar Jul 08 '22 15:07 GeorgeWL

I also need that statusFormatter allow React Node not only string.

kes3583 avatar Aug 21 '22 05:08 kes3583

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 17 '23 20:02 stale[bot]

not stale

GeorgeWL avatar Feb 19 '23 13:02 GeorgeWL

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 18 '23 15:08 stale[bot]

Not stale

GeorgeWL avatar Aug 18 '23 17:08 GeorgeWL

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 15 '24 01:02 stale[bot]