@lumenpink/vue3-fitty
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Vue3 Fitty

Fitty text wrapper for Vue 3

This is a fork/update to Vue 3 and TypeScript of the vue-fitty package from Rasmus Schlünsen

npm (scoped with tag) npm Dependencies ts

Usage

<template>
    <div>
        <!-- Wrap your component with Fitty -->
        <fitty :options="options">

              <h1>FITTED TEXT HERE</h1>

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

// Install plugin
Vue.use(Fitty)

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

/@lumenpink/vue3-fitty/

    Package Sidebar

    Install

    npm i @lumenpink/vue3-fitty

    Weekly Downloads

    3

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    109 kB

    Total Files

    22

    Last publish

    Collaborators

    • lumenpink