# vue-inline

> Inline anything in your Vue component.

Latest version **1.0.1** (published 2016-10-21) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-10-21 |
| First published | 2016-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | EGOIST |
| Maintainers | rem |
| Keywords | vue, inline |

## Links

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

## Dependencies (1)

- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0

## Recent versions

- 1.0.1 (latest) — 2016-10-21
- 1.0.0 — 2016-10-21

## README

# vue-inline [![NPM version](https://img.shields.io/npm/v/vue-inline.svg?style=flat-square)](https://npmjs.com/package/vue-inline) [![NPM downloads](https://img.shields.io/npm/dm/vue-inline.svg?style=flat-square)](https://npmjs.com/package/vue-inline) [![Build Status](https://img.shields.io/circleci/project/egoist/vue-inline/master.svg?style=flat-square)](https://circleci.com/gh/egoist/vue-inline)

Inline anything in your Vue component, like string / component / images et al

## Install

```bash
$ npm install --save vue-inline
```

## Usage

**Register the component globally:**

```js
import Inline from 'vue-inline'

Vue.use(Inline, {
  data: {
    // inline a string
    foo: 'inlined foo',
    // or an svg image with svg-inline-loader or file-loader
    bar: require('/path/to/bar.svg')
  }
})
```

**Inline it in your component:**

```vue
<template>
  <!-- render a srring -->
  <inline name="foo"></inline>
  <!-- render an image -->
  <inline name="bar"></inline>
</template>
```

**Or register the inline component locally:**

```js
import {makeComponent} from 'vue-inline'

const Inline = makeComponent(data)
// register `Inline` in your component
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## License

[MIT](https://egoist.mit-license.org/) © [EGOIST](https://github.com/egoist)

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