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

How to change the Icon and its position?

Open ivanjeremic opened this issue 3 years ago • 1 comments
trafficstars

I want to change the Icon on the right and also be able to change the position to be left instead of right, I already searched the issues and using a react component in the trigger prop has no effect.

ivanjeremic avatar Jan 22 '22 13:01 ivanjeremic

@ivanjeremic Hi! I made this possible with passing this to trigger prop in Collapsible component <Collapsible {...props} trigger={[trigger, <ExpandIcon key={trigger} />]} > ExpandIcon - custom component

Babrov avatar Feb 02 '22 09:02 Babrov