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

Request: Add option to change border radius

Open michaelzhu23 opened this issue 3 years ago • 2 comments

I think it'd be useful to have a prop to customize the border radius of the tooltip.

michaelzhu23 avatar Apr 15 '21 07:04 michaelzhu23

Anti-Request: dear library maintainers, please don't add props unless absolutely necessary. And in this case it's not.

@michaelzhu23 Just use the existing className prop 🙂 JSX:

<ReactTooltip className='customTooltip'/>

CSS:

.customTooltip {
  border-radius: 0;
}

targumon avatar Jun 13 '21 07:06 targumon

doesn't work, you have to add !important

sgehrman avatar Aug 11 '22 02:08 sgehrman

hi, guys can you let me know your thoughts here, please? https://github.com/ReactTooltip/react-tooltip/pull/820#issuecomment-1317096074

danielbarion avatar Nov 16 '22 16:11 danielbarion