1.0.5 • Published 5 years ago

vue-notebook-ui v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-notebook-ui NPM version

Vue component for giving html textarea a notebook/notepad feel.

Install

NPM

npm i vue-notebook-ui

Yarn

yarn add vue-notebook-ui

Samples

Texture Paper Layout

notebook-ui-texture

Empty Lined Paper

notebook-ui-emptylined

Empty Lined Coloured Paper

notebook-ui-emptylinedcoloured

Usage

main.js

import Vue from 'vue';
import NotebookUi from 'vue-notebook-ui';

Vue.use(NotebookUi);

component

<template>
  <div>
    <notebook-ui
      :customStyle="{color:`orange`, 'text-decoration': 'bold'}"
      :content="content"
      placeholder="This is it"
      type="Texture"
      color="red"
    ></notebook-ui>
  </div>
</template>

<script>
export default {
  data() {
    return {
      content: "This is amazing"
    }
  },
}
</script>

Props

PropertyTypeDefaultDescription
typeStringEmptyLinedThe type of the paper component, can be EmptyLined, EmptyLinedColored, Texture
contentStringWrite note hereThe content of notebook
placeholderStringWrite note hereThe placeholder of the notebook
colorStringmediumblueThe font color of the textarea
fontStyleString"Handlee", cursiveThe font-family of the notebook
customStyleObject-The style of the notebook, overrides any style used

Made with ❤️ by Joshua Chinemezu