Socket
Book a DemoInstallSign in
Socket

@befe/brick-comp-button

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@befe/brick-comp-button

@befe/brick component Button

latest
npmnpm
Version
0.2.85
Version published
Weekly downloads
382
12633.33%
Maintainers
2
Weekly downloads
 
Created
Source

2021 BREAKING CHANGES

  • 移除 deprecated prop.loadingDelayInMS
    • 替代为 props.loadingDelay
  • 不再支持 props.style (此前的支持是由于不恰当的 props 传递造成)
    • /main/getting-started 中 FAQ.组件原则上不支持 props.style

FAQ

  • 语义上,一个是"按钮",一个是"链接",设计上两者也是有区别
  • 一般来说,需要 onClick 处理的属于"按钮",只需处理 href 的为"链接"
  • 由于 <a /> 原生不支持 disabled 的(除非样式修饰 a[disabled] {pointer-events: none;}) ,所以一般尽量不要 "链接" 作为 "按钮"
    • try <a disabled onClick={() => console.log('not disabled')}>Am I disabled?</a>
  • 由于链接 <a /> 原生支持快捷键操作"新标签页打开"(鼠标中键, ⌘ + 鼠标左键),所以一般尽量不用 "按钮" 作为 "链接"

FAQs

Package last updated on 03 Sep 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.