vue-fitty

0.1.8 • Public • Published

Vue Fitty

Fitty text wrapper for Vue

npm (scoped with tag) npm Dependencies js-standard-style

Usage

<template>
    <div>
        <!-- Wrap your component with Fitty -->
        <fitty :options="options">
            <template v-slot:content>
            
              <h1>FITTED TEXT HERE</h1>

            </template>
        </fitty>
    </div>
</template>
import Fitty from 'vue-fitty' 
import MyAwesomeComponent from 'my/aweseome/path'

// Install plugin 
Vue.use(Fitty)

export default {
  data: () => ({
      options: {
        minSize: 11,
        maxSize: 120,
      }
  }),
  components: {
    MyAwesomeComponent
  }
  ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i vue-fitty

Weekly Downloads

62

Version

0.1.8

License

none

Unpacked Size

577 kB

Total Files

19

Last publish

Collaborators

  • schlunsen