问题描述
如何将从 react-icons 导入的 svg 图标传递给使用 css-in-js 样式的 jsx 元素中的 css clipPath
属性? (在这个例子中使用情感)。
import { FaStar } from 'react-icons/fa'; // the svg icon
...
<input
type='radio'
css={{
clipPath: **here** // I want to pass <FaStar/> here somehow.
}}
\>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)