简体   繁体   中英

how to add an Arrow icon inside my React Js Project

I am working on 3rd party ReactJS SPFx SharePoint web part. and inside the code i have the following markup to show 2 icons-

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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