omi/components/button
yuqing521 3453c117b7 feat(omi-cli): add Initialize component 2021-07-20 18:51:14 +08:00
..
demos/js-demo publish(@omiu/button) 2020-05-04 10:53:30 +08:00
scripts chore: gen script wording 2020-05-05 10:43:53 +08:00
src feat(omi-cli): add Initialize component 2021-07-20 18:51:14 +08:00
test test(omiu): button test finish 2021-07-05 14:36:30 +08:00
README.md publish(@omiu/button) 2020-05-04 10:53:30 +08:00
package.json refactor(@omiu/button): remove variable of hover style 2021-07-14 08:46:37 +08:00
tsconfig.json chore: remove o- 2020-04-19 22:20:26 +08:00

README.md

Button

Button

Import

import '@omiu/button'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/button"></script>

Usage

<o-button></o-button>

API

Props

{
  size?: 'medium' | 'small' | 'mini',
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'
  plain?: boolean,
  round?: boolean,
  circle?: boolean,
  loading?: boolean,
  disabled?: boolean,
  icon?: string,
  autofocus?: boolean,
  nativeType?: 'button' | 'submit' | 'reset',
  block?: boolean
  text?: string
}

默认属性

{
  plain: false,
  round: false,
  circle: false,
  loading: false,
  disabled: false,
  autofocus: false,
  nativeType: 'button',
  block: false
}