vue-layout-primitives.frame

0.0.7 • Public • Published

vue-layout-primitives.frame

A component renders its content in a fixed aspect ratio container.

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.frame"></script>
<script>
new Vue({ el: '#app' })
</script>

In a module system

Install the component with NPM:

npm install vue-layout-primitives.frame

Then import the component:

import Frame from 'vue-layout-primitives.frame'

And either globally register it for use in all components:

Vue.component(Frame, 'vue-layout-primitives.frame')

or locally register it for use in an individual component:

export default {
components: { Frame }
}

Usage

<!-- No props or content are necessary. -->
  <Frame>
		...
	</Frame>

Readme

Keywords

none

Package Sidebar

Install

npm i vue-layout-primitives.frame

Weekly Downloads

4

Version

0.0.7

License

MIT

Unpacked Size

160 kB

Total Files

23

Last publish

Collaborators

  • philcurl