如何给这个反应工具提示边界和删除箭头?



我们如何删除这个react工具提示的箭头并给它一个边框?

https://www.npmjs.com/package/react-tooltip

你可以通过覆盖工具提示css,试试这个

<span data-tip="hello" data-class="tool-tip"></span>
.tool-tip::before {
border-right: none !important;
}

.__react_component_tooltip::before,
.__react_component_tooltip::after {
content: none !important;
}

最新更新