Skip to content

wheatjs/vue-hako

Folders and files

NameName
Last commit message
Last commit date

Latest commit

13b5cd1 · Jun 8, 2021

History

6 Commits
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021
Jun 8, 2021

Repository files navigation

VQL

A Vue Component to proportionally scale your content

Installation

npm i vue-hako

Usage

Register the component to be used anywhere in your app.

Inside of main.js

import { createApp } from 'vue'
import { HakoPlugin } from 'vue-hako'
import App from './App.vue'

createApp(App)
  .use(Hako)
  .mount('#app')

Or import the component on a per-component basis.

Inside of your component

<script setup>
import { Hako } from 'vue-hako'
</script>

<template>
  ...
</template>

Using the component

<script setup>
import { ref } from 'vue'

const disableScaling = ref(false)
const width = ref(1920)
const height = ref(1080)
</script>

<template>
  <div>
    <Hako 
      :width="width" 
      :height="height" 
      :disable-scaling="disableScaling"
    >
      This content will scale to its container
    </Hako>
  </div>
</template>

License

MIT License © 2021-PRESENT Jacob Clevenger

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published