# @hakut/valert

> It's a Vue 2.x package which provides custom alerts

Latest version **0.1.4** (published 2022-08-29) · 0 weekly downloads

## Install

```sh
npm install @hakut/valert
pnpm add @hakut/valert
yarn add @hakut/valert
bun add @hakut/valert
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2022-08-29 |
| First published | 2022-08-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 528.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hakut |

## Links

- npm: https://www.npmjs.com/package/@hakut/valert
- Repository: https://github.com/HakkiAkut/valert
- Homepage: https://github.com/HakkiAkut/valert#readme
- Issues: https://github.com/HakkiAkut/valert/issues
- npm.io page: https://npm.io/package/@hakut/valert

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.14
- [core-js](https://npm.io/package/core-js.md) ^3.8.3

## Recent versions

- 0.1.4 (latest) — 2022-08-29
- 0.1.3 — 2022-08-27
- 0.1.2 — 2022-08-26
- 0.1.1 — 2022-08-26
- 0.1.0 — 2022-08-26

## README

# valert
It's a Vue 2.x package which provides custom alerts

[Live Demo](https://valert.vercel.app/)

## Getting Started

1. install the package
```
npm install @hakut/valert
```
2. add package into main.js
```
import Vue from "vue";
import VAlert from "@hakut/valert";

Vue.use(VAlert);
```
3. add VAlert into App.vue
```
<template>
  <div id="app">
    <v-alert />
    <router-view />
  </div>
</template>

<script>
import VAlert from "@hakut/valert";
export default {
  name: "App",
  components: {
    VAlert,
  },
};
</script>
```
4. call the alert
```
this.$valert({
  type: "alert type",
  title: "alert title",
  desc: "alert text",
  duration: 2,
  position: "position",
});
```

## Usage

import and add VAlert inside template

```
<template>
  <div id="app">
    <v-alert />
  </div>
</template>
```

call this.$valert()
```
this.$valert({
  type: "alert type",
  title: "alert title",
  desc: "alert text",
  duration: 2,
  position: "position",
});
```

### properties

type: required
```
"success"
"error"
"warning"
"information"
```
title: required
```
"Any string"
```
desc: required
```
"Any string"
```
duration: required
```
1 // seconds
```
position: default="right-top"
```
"right-top",
"right-center",
"right-bottom",
"left-top",
"left-center",
"left-bottom",
"center-top",
"center",
"center-bottom",
```

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