简体   繁体   English

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

[英]how to add an Arrow icon inside my React Js Project

I am working on 3rd party ReactJS SPFx SharePoint web part.我正在研究第 3 方 ReactJS SPFx SharePoint web 零件。 and inside the code i have the following markup to show 2 icons-在代码中我有以下标记来显示 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>

在此处输入图像描述

now i want to show this icon (arrow) and color it as orange, but not sure what is the icon name?现在我想显示这个图标(箭头)并将其着色为橙色,但不确定图标名称是什么?

在此处输入图像描述

Thanks谢谢

Try this:尝试这个:

iconName='DecreaseIndentArrowMirrored'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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