Icon

Use and Import

import Icon from 'nes-design/es/Icon';   OR   import { Icon } from 'nes-design';
Copy

Case

App Icon

Other Icon

Size

Injection Class

Provide custom Icon class to meet the needs of NES.CSS special Icon

提供自定义 Icon 类,适应官方无规则的 Icon 需求

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
nameicon name / icon 的名称Icons-
sizeicon size / icon 的尺寸'large' | 'middle' | 'small'middle
customClasscustom Icon class / 自定义 icon 类string-
classNameicon className / icon classNamestring-
Prop / 参数Description / 描述Type / 类型Default / 默认值
Iconsicon name collect'twitter' | 'facebook' | 'instagram' | 'github' | 'google' | 'gmail' | 'medium' | 'linkedin' | 'twitch' | 'youtube' | 'reddit' | 'whatsapp' | 'close' | 'trophy' | 'coin' | 'star' | 'heart' | 'like'-