# form-text-tags

> Odyzeo form tagged textbox component with Vue

Latest version **0.1.4** (published 2020-08-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install form-text-tags
pnpm add form-text-tags
yarn add form-text-tags
bun add form-text-tags
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-08-12 |
| First published | 2020-07-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 731.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Odyzeo |
| Maintainers | drewborneman |
| Keywords | odyzeo, form, tags, vue |

## Links

- npm: https://www.npmjs.com/package/form-text-tags
- Repository: https://github.com/drewborneman/form-text-tags
- Homepage: https://github.com/drewborneman/form-text-tags#readme
- Issues: https://github.com/drewborneman/form-text-tags/issues
- npm.io page: https://npm.io/package/form-text-tags

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2020-08-12
- 0.1.3 — 2020-07-27
- 0.1.2 — 2020-07-27
- 0.1.1 — 2020-07-24
- 0.1.0 — 2020-07-24

## README

# form-text-tags

A simple tagged textbox Vue.js component derived from the @odyzeo/form-autocomplete
component.

## Installation

### npm

```
npm install --save form-text-tags
```

### yarn

```
yarn add form-text-tags
```

Import the component where you want to use it and register it:

```
import 'FormTextTags' from 'form-text-tags';
export default {
  components: {
    FormTextTags,
  },
}
```

Import styles or make your own.

```
import 'form-text-tags/dist/form-text-tags.css';
```

## Usage

```
<template>
  <div
          id="app"
          class="app"
  >
    <div class="container">
      <h1>Demo</h1>

      <p>Adding and removing tags:</p>

      <form-text-tags
              v-model="textBoxTags"
              :close-on-add="false"
              :hide-text-on-blur="false"
              :clear-text-on-blur="false"
              :placeholder="'Add tags here'"
      >
        <template #label>
          Tags
        </template>
      </form-text-tags>

        <p>Textbox value:</p>

        <pre>{{ textBoxTags }}</pre>
    </div>
  </div>
</template>

<script>
  import FormTextTags from '@/components/FormTextTags';

  export default {
    name: 'App',
    components: {
      FormTextTags,
    },
    data() {
      return {
        textBoxTags: [
                "Apple",
                "Orange",
                "Banana",
        ],
      };
    },
  };
</script>

<style lang="less">
  @import '../src/less/app.less';
</style>

```
## Events
### Entered
Returns the text of the item entered as a tag

## Props

| Property name | Type | Default value | Description |
| ------------- | ---- | ------------- | ----------- |
| `value or v-model` | array | `[]` | Array of initial selected option(s) |
| `placeholder` | string | | Input `placeholder` attribute |
| `formErrors` | array | `[]` | Array of errors to display |
| `blurOnAdd` | boolean | `false` | Whether to blur the element after a tag has been added |
| `hideTextOnBlur` | boolean | `false` | Whether to collapse the input area when the element is blurred |
| `clearTextOnBlur` | boolean | `false` | Whether to clear the input area when the element is blurred |



## Slots
### label
Label value for the input element.

### prepend
Div block before the input element, use it to display an icon

### append
Div block after the input element, use it to display an icon

## Development

```
npm run serve
```

or

```bash
yarn serve
```

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