Wondering what’s next for npm?Check out our public roadmap! »

@omiu/buttonTypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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
}

默认属性

{
  plainfalse,
  roundfalse,
  circlefalse,
  loadingfalse,
  disabledfalse,
  autofocusfalse,
  nativeType'button',
  blockfalse
}

Install

npm i @omiu/button

DownloadsWeekly Downloads

31

Version

0.0.8

License

MIT

Unpacked Size

74.2 kB

Total Files

10

Homepage

omijs.org

Last publish

Collaborators

  • avatar