@readr-ui/subscription

1.1.1 • Public • Published

@readr-ui/subscription

Install

using yarn:

yarn add @readr-ui/subscription

Usage

xxx.vue

<template>
  <Subscription
    @submit="subscribe"
  />
</template>

<script>

import Subscription from 'src/components/Subscription.vue'

export default {
  components: {
    Subscription
  },
  methods: {
    subscribe (email) {
      // do somethig...
    }
  }
}

</script>

Props Options

key description default type
errorMessage customize error message `` String
isError control whether to display error message false Boolean
isLoading control whether to display loading effect false Boolean
isSuccess control whether to display success message false Boolean
placeholder customize input placeholder 我的 Email 信箱 String
submitText customize submit button text 送出 String

Developing

# For rapid prototyping a single Vue.js SFC
yarn serve packages/readr-ui-subscription/src/readr-ui-subscription.vue

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i @readr-ui/subscription

    Weekly Downloads

    0

    Version

    1.1.1

    License

    none

    Unpacked Size

    5.33 kB

    Total Files

    3

    Last publish

    Collaborators

    • yeefun
    • mmnoahtan
    • kwhsiung