【发布时间】:2023-03-04 13:56:01
【问题描述】:
我目前正在获得这样的图标:
import { Icon } from "antd";
...
// inside react component:
<div className="someclass">
<Icon type="thunderbolt" />
</div>
我真正想做的是,使用 CSS:
div.someclass::before {
content: "\E6EA"; // pretend this is the correct thunderbolt icon code
}
现在我认为我读到antd 不使用图标字体,而是直接使用 SVG。那是对的吗?这是否意味着 antd 无法使用 CSS 插入图标?
【问题讨论】: