JSPM

vue-responsive-text

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 52
  • Score
    100M100P100Q56359F
  • License MIT

Vue component that scales its child node in relation to its parent node's width

Package Exports

  • vue-responsive-text

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-responsive-text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-responsive-text

Vue component that scales its child node in relation to its parent node's width. Inspired by @foisonocean's 'react-dynamic-font'.

Installation

Install the package from npm by running

$ yarn add vue-responsive-text

or

$ npm install --save vue-responsive-text

Usage

Import the component as you would any other and place responsive text as the component's child.

<template>
  <vue-responsive-text>this text will scale</vue-responsive-text>
</template>

<script>
import VueResponsiveText from 'vue-responsive-text'

export default {
  ...
  components: {
    "vue-responsive-text": VueResponsiveText
  }
};
</script>

vue-responsive-text demo