Socket
Socket
Sign inDemoInstall

nuke-icon

Package Overview
Dependencies
10
Maintainers
5
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuke-icon

图标


Version published
Weekly downloads
23
decreased by-32.35%
Maintainers
5
Install size
468 kB
Created
Weekly downloads
 

Readme

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

Last updated on 26 Sep 2019

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc