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

tingle-icon

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tingle-icon

svg icon 解决方案。

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Icon npm version

Icon图标展示

icon viewer

Best Practice 最佳实践

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

样式依赖

<link rel="stylesheet" href="./node_modules/tingle-style/src/tingle.css">
<link rel="stylesheet" href="./src/Icon.css">

JSX

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

可用配置

配置项必填默认值功能/备注
idrequired---需要引用的svg的ID值
classNameoptionaltIcon自定义样式名

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

Keywords

FAQs

Package last updated on 19 Nov 2015

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