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

    0.0.11 • Public • Published

    Button

    Click or touch it to trigger an operation. The encapsulated logic is triggered in response to user clicks.

    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
    }

    Default Props

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

    Install

    npm i @omiu/button

    Homepage

    omijs.org

    DownloadsWeekly Downloads

    30

    Version

    0.0.11

    License

    MIT

    Unpacked Size

    23.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • dntzhang