1.1.1 • Published 5 years ago

@readr-ui/subscription v1.1.1

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

@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

keydescriptiondefaulttype
errorMessagecustomize error message|String
isErrorcontrol whether to display error messagefalseBoolean
isLoadingcontrol whether to display loading effectfalseBoolean
isSuccesscontrol whether to display success messagefalseBoolean
placeholdercustomize input placeholder我的 Email 信箱String
submitTextcustomize submit button text送出String

Developing

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