Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuke-icon

Package Overview
Dependencies
Maintainers
5
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-icon

图标

  • 2.3.2
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-77.19%
Maintainers
5
Weekly downloads
 
Created
Source

Icon

  • category: UI
  • chinese: 图标
  • type: UI组件

设计思路

Icon 组件 是对 Image 组件的一个封装,预置了4个尺寸的图片,方便我们在开发中使用方形的图片。

考虑到使用便捷性,还额外加入了 Iconfont 图标的支持, 查看 demo 可以找到所有内置 icon。

API

参数说明类型默认值
type新增 type 字段,标识是 iconfont 还是图片,可选 image iconfontstring'image'
sizetype = image 时有效,定义了 icon 的尺寸:'xs', 'small', 'medium', 'large'string'medium'
onPress当传入 name 时失效,Press事件Function
src图片链接地址或 iconfont urlstring
nameiconfont name 值string

Keywords

FAQs

Package last updated on 15 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc