# vue-frame

> Dynamic component for rapid creation of interfaces

Latest version **1.0.7** (published 2018-03-03) · 0 weekly downloads

## Install

```sh
npm install vue-frame
pnpm add vue-frame
yarn add vue-frame
bun add vue-frame
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-03-03 |
| First published | 2017-04-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 981.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Julian David |
| Maintainers | anlijudavid |
| Keywords | vue, iframe, component |

## Links

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

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.13

## Recent versions

- 1.0.7 (latest) — 2018-03-03
- 1.0.6 — 2018-02-22
- 1.0.5 — 2017-04-03
- 1.0.4 — 2017-04-03
- 1.0.3 — 2017-04-02
- 1.0.2 — 2017-04-02
- 1.0.1 — 2017-04-02
- 1.0.0 — 2017-04-02

## README

# Vue-frame

[![Build Status](https://travis-ci.org/juliandavidmr/vue-frame.svg?branch=master)](https://travis-ci.org/juliandavidmr/vue-frame)
[![npm version](https://img.shields.io/npm/v/vue-frame.svg)](https://www.npmjs.com/package/vue-frame)
[![npm](https://img.shields.io/npm/dt/vue-frame.svg)](https://www.npmjs.com/package/vue-frame)
[![GitHub stars](https://img.shields.io/github/stars/juliandavidmr/vue-frame.svg?style=social&label=Star)](https://www.npmjs.com/package/vue-frame)

> A simple component Vue 2.x for prototyping interfaces with iframes.

## Install

Using **npm:**

```bash
npm install --save vue-frame
```

Using **yarn:**

```bash
yarn add vue-frame
```

Import

```js
import VueFrame from 'vue-frame'
export default {
  components: { VueFrame },
  data () {
    return { /*...*/ }
  },
  methods: { /*...*/ }
}
```

### Usage

This is a project for [vue](https://github.com/vuejs).

```html
<div id="vue-frame">
   <vue-frame text="VueJS" url="https://vuejs.org" frame="myframe" type="button" class="form-control"></vue-frame>
   <vue-frame text="Api Vue" url="https://vuejs.org/v2/api" frame="myframe" type="a"></vue-frame>
   <br />

   <iframe id="myframe" width="800"></iframe>
</div>

<script src="/dist/vue-frame.js"></script>
```

The rendered elements look like this:

[![CURRENTLY RECORDING](https://raw.githubusercontent.com/juliandavidmr/vue-frame/master/docs/gif.gif)](https://github.com/juliandavidmr/vue-frame)

### PropTypes

| Prop  | Desc          | Type  | Default | Is Required |
| ----- | ------------- | ----- | ------- | ------ |
| `class` | Custom class to add to the **component** | `string` |  |  |
| `url` | Custom url that the component will load | `string` |  | ✅ |
| `text` | Custom text | `string` |  | ✅ |
| `frame` | Iframe element ID | `string` | | ✅ |
| `type` | Name of the HTML tag to render | `string` | `a` | |
| `default` | load site instantly mount the element | `boolean` | `false` | |

#### Example

```html
<vue-frame text="VueJS" url="https://juliandavidmr.github.io" frame="idframe" type="div" class="form-control"></vue-frame>
```

#### Use CDN

```html
<script src="https://unpkg.com/vue-frame@1.0.6/dist/vue-frame.js"></script>
```

See example with _cdn_ [index.html](./index_cdn.html)

### Development

|Command|Description|
|---|---|
|npm run build|Build|
|npm run dev|Open browser dev|

[**Contributing**](./CONTRIBUTING.md)

### License

MIT [@juliandavidmr](https://github.com/juliandavidmr)

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