New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@xme-react/button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xme-react/button

按钮

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

按钮 / Button

使用

参数类型备注
typeString按钮类型,可选项primary
sizeString按钮大小,默认middle,可选项smallmiddlelarge
onClickFunction点击的回调
loadingBoolean是否显示loading
disabledWhenLoadingBoolean在loading的时候,不要触发点击回调
clsString自定义样式名
htmlTypeString按钮原生的类型,默认button,可选reset(重置)submit(提交)button
import React from 'react'
import ReactDOM from 'react-dom'
import Button from '@xm/Button'

ReactDOM.render((
  <div>
    <p><Button size="small">你好</Button></p>
    <p><Button size="small" loading>你好</Button></p>
    <p><Button>你好</Button></p>
    <p><Button loading>你好</Button></p>
    <p><Button size="large">你好</Button></p>
    <p><Button size="large" loading>你好</Button></p>
    <p><Button type="primary" size="small">你好</Button></p>
    <p><Button type="primary" size="small" loading>你好</Button></p>
    <p><Button type="primary">你好</Button></p>
    <p><Button type="primary" loading>你好</Button></p>
    <p><Button type="primary" size="large">你好</Button></p>
    <p><Button type="primary" size="large" loading>你好</Button></p>
  </div>), document.body)

FAQs

Package last updated on 21 Mar 2019

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