Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wheatjs/vue-hako


https://github.com/wheatjs/vue-hako

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        


VQL


A Vue Component to proportionally scale your content

## Installation
```bash
npm i vue-hako
```

## Usage

Register the component to be used anywhere in your app.

Inside of `main.js`
```ts
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
```html

import { Hako } from 'vue-hako'

...

```

Using the component

```html

import { ref } from 'vue'

const disableScaling = ref(false)
const width = ref(1920)
const height = ref(1080)



This content will scale to its container

```

## License

[MIT License](https://github.com/jacobclevenger/vue-hako/blob/main/LICENSE) © 2021-PRESENT [Jacob Clevenger](https://github.com/jacobclevenger)