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

@teamix/collect

Package Overview
Dependencies
Maintainers
13
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamix/collect

收藏,一个小星星

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
13
Weekly downloads
 
Created
Source

@teamix/collect

收藏,一个小星星

API

参数类型可选值默认值说明
collectedbooltrue/falsefalse是否收藏
onClickfunction() => {}点击回调
type枚举值icon, buttoniconicon模式或button模式
languagestringzh-cn, enzh-cn选择语言
hoverCollectedTextstring收藏状态下icon模式hover文案,设置了这个参数,language就会失效
hoverUncollectedTextstring未收藏状态下icon模式hover文案,设置了这个参数,language就会失效
buttonCollectedTextstring收藏状态下button模式文案,设置了这个参数,language就会失效
buttonUncollectedTextstring未收藏状态下button模式文案,设置了这个参数,language就会失效
noHoverTextboolfalse是否无需hover文案
isIconFillWhenUncollectedboolfalse未点亮状态的Icon是否为填充底,默认为线底
sizestringmediumButton的size
buttonTypestringtextButton的type
buttonColorstringgrayButton的color

Keywords

FAQs

Package last updated on 12 Apr 2021

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