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

tingle-icon

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tingle-icon

tingle-icon component for tingle.

  • 1.0.0-rc2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

tingle-icon

npm version

Icon图标展示,适用于移动端图标展示

Install

npm install tingle-icon --save

Simple Usage

[注] 使用最新的tingle-icon组件需要最新的tingle-context支持,具体详情可查看History记录。

这是一个 tingle 组件,使用SVG来制作icon系统的解决方案。

<Icon className="icon" id="baby"/>
<Icon className="icon customCls" id="headphones"/>
...

Props

id

描述:需要引用的SVG的ID标识 类型:'string' 必选:是

示例:

<Icon className="icon" id="baby"/>

className

描述:自定义样式名,默认为 'tIcon' 类型:'string' 必选:否

示例:

<Icon className="icon" id="xxxx"/>

注1: id的值默认情况下是根据SVG资源名称相对应的

Keywords

FAQs

Package last updated on 01 Apr 2016

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