繁体   English   中英

如何在我的 React Js 项目中添加箭头图标

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM