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-textor
$ npm install --save vue-responsive-textUsage
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>