@teamix/collect
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@teamix/collect

收藏,一个小星星

API

参数 类型 可选值 默认值 说明
collected bool true/false false 是否收藏
onClick function () => {} 点击回调
type 枚举值 icon, button icon icon模式或button模式
language string zh-cn, en zh-cn 选择语言
hoverCollectedText string 收藏状态下icon模式hover文案,设置了这个参数,language就会失效
hoverUncollectedText string 未收藏状态下icon模式hover文案,设置了这个参数,language就会失效
buttonCollectedText string 收藏状态下button模式文案,设置了这个参数,language就会失效
buttonUncollectedText string 未收藏状态下button模式文案,设置了这个参数,language就会失效
noHoverText bool false 是否无需hover文案
isIconFillWhenUncollected bool false 未点亮状态的Icon是否为填充底,默认为线底
size string medium Button的size
buttonType string text Button的type
buttonColor string gray Button的color

Readme

Keywords

Package Sidebar

Install

npm i @teamix/collect

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

974 kB

Total Files

21

Last publish

Collaborators

  • yofine
  • zaranengap
  • chesstar