Skip to content

RUBisco0211/quasar-app-extension-qotp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quasar App Extension q-otp-input

中文文档

The QOtpInput component is used for inputting one-time password.

Links

npm: @rubisco0211/quasar-app-extension-qotp

demo

Install

quasar ext add @rubisco0211/qotp

Quasar CLI will retrieve it from the NPM registry and install the extension to your project.

Uninstall

quasar ext remove @rubisco0211/qotp

Usage

<template>
    <q-otp-input v-bind="otpProps" v-model="otp"></q-otp-input>
</template>
<script setup lang="ts">
import { ref } from "vue";

const otp = ref("");

const otpProps = ref({
    length: 6,
    placeholder: "",

    autofocus: true,
    digitOnly: true,
    allowPaste: true,
    realTime: true,

    type: "text",
    readonly: false,
    disable: false,
    loading: false,
    error: false,

    outlined: true,
    filled: false,
    dense: false,
    standout: false,
    fontSize: "18px",
});
</script>

Donate

If you appreciate the work that went into this App Extension, please consider donating to Quasar.

About

The QOtpInput component is used for inputting one-time password.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published