# @aryan02420/vue-frame

> Render your Vue nodes in an iframe

Latest version **1.0.0** (published 2022-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aryan02420/vue-frame
pnpm add @aryan02420/vue-frame
yarn add @aryan02420/vue-frame
bun add @aryan02420/vue-frame
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-09 |
| First published | 2022-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | aryan02420 |
| Maintainers | aryan02420 |
| Keywords | vue, iframe |

## Links

- npm: https://www.npmjs.com/package/@aryan02420/vue-frame
- Repository: https://github.com/aryan02420/vue-frame
- Homepage: https://github.com/aryan02420/vue-frame#readme
- Issues: https://github.com/aryan02420/vue-frame/issues
- npm.io page: https://npm.io/package/@aryan02420/vue-frame

## Recent versions

- 1.0.0 (latest) — 2022-10-09

## README

# VueFrame

Render your Vue nodes in an iframe

## Installation

```bash
npm i @aryan02420/vue-frame
```

> Vue3 is a peer dependency and needs to be installed separately

## Usage

```vue
<script setup lang="ts">
import { VueFrame } from 'vue-frame'
</script>

<template>
  <vue-frame>
    <h1>Hello Wrold!</h1>
  </vue-frame>
</template>
```

### Props

#### inherit-styles

`inheritStyles: Boolean`

If `true`, styles from parent window will be copied into the iframe. Use this to make the iframe look like your Vue app.

#### stylesheet

`stylesheet: String`

If set, it will create a new style tag using this value. Use this for injecting custom styles into the iframe.

#### All properties of [HTMLIFrameElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement)

## Demo

https://aryan02420.github.io/vue-frame

---
_Source: https://npm.io/package/@aryan02420/vue-frame · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
