Socket
Socket
Sign inDemoInstall

m-button

Package Overview
Dependencies
21
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    m-button

m-button 按钮


Version published
Maintainers
1
Install size
3.31 MB
Created

Readme

Source

m-button


按钮用于开始一个即时操作。

何时使用

标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。

API

  • 通过设置 Button 的属性来产生不同的按钮样式,推荐顺序为:type -> size -> disabled -> block

  • 按钮的属性说明如下:

属性说明类型默认值
type设置按钮类型,可选值为 primary secondary warn 或者不设Enum-
size设置按钮大小,可选值为 small large 或者不设Enum-
href设置按钮的链接,如果设置了该值,则返回一个<a>标签的domstring-
onClickclick 事件的 handlerFunctionfunction() {}
  • <Button>Hello world!</Button> 最终会被渲染为 <button>Hello world!</button>,并且除了上表中的属性,其它属性都会直接传到 <button></button>

Keywords

FAQs

Last updated on 23 May 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc