vue-layout-primitives.base-text
v0.0.7
Published
The base text component used to render standard body copy.
Downloads
4
Readme
vue-layout-primitives.base-text
The base text component used to render standard body copy.
Installation
Directly in the browser
Drop the component in with a <script>
tag alongside Vue:
<div id="app">
<!-- ... use component here ... -->
</div>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-layout-primitives.base-text"></script>
<script>
new Vue({ el: '#app' })
</script>
In a module system
Install the component with NPM:
npm install vue-layout-primitives.base-text
Then import the component:
import BaseText from 'vue-layout-primitives.base-text'
And either globally register it for use in all components:
Vue.component(BaseText, 'vue-layout-primitives.base-text')
or locally register it for use in an individual component:
export default {
components: { BaseText }
}
Usage
<!-- No props or content are necessary. -->
<BaseText>
Some text
</BaseText>