0.1.3 • Published 2 years ago

vue-quick-notes v0.1.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Installation

npm

Use npm to install.

npm i vue-quick-notes

Usage

import { VueQuickNotes } from "vue-quick-notes";

// style import is needed to work propperly
import "vue-quick-notes/dist/style.css";
<VueQuickNotes label="Quick notes" v-model="text" />

Composable

// Get the value of the text in any component
import { useQuickNotes } from "vue-quick-notes";

let { text, open } = useQuickNotes();

console.log(text.value);

console.log(open.value); // Use this value to show or hide quick-note

Use ctrl+alt+k to show quick note

Props

NameTypeDefaultDetail
xnumberscreenWidth - 350Initial x position of div
ynumberscreenHeight - 250Initial y position of div
labelstringnullLabel for textarea
z-indexstring20z index of div
langstringen-USSpeech recognition language
parent-classstringnullclass of div
button-classstringnullclass of mic button

Any other attributes will be passed to textarea