Skip to content

schlunsen/vue-fitty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
  ...
}

About

A vue fit text component using fitty

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •