[英]how to add an Arrow icon inside my React Js Project
我正在研究第 3 方 ReactJS SPFx SharePoint web 零件。 在代码中我有以下标记来显示 2 个图标-
import * as React from 'react';
import { Icon } from 'office-ui-fabric-react/lib/Icon';
import styles from './SingleNews.module.scss';
import { ISingleNewsProps } from './ISingleNewsProps';
import News from '../News';
//code goes here...
<span className={ styles.singleNews__content__info__reactions__likes}>
<Icon className={styles.icon} iconName='Like' />
post.likes}
</span>
<span className={ styles.singleNews__content__info__reactions__comments}>
<Icon className={styles.icon} iconName='ActionCenter' />
{post.coments}
</span>
现在我想显示这个图标(箭头)并将其着色为橙色,但不确定图标名称是什么?
谢谢
尝试这个:
iconName='DecreaseIndentArrowMirrored'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.