0.2.1 • Published 5 months ago

psnotification v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

psnotification

psnotification is a customizable notification component for Vue 3 that allows you to easily display notifications in various positions on the screen. You can pass different message strings, status types (such as success or error), and choose the notification position (e.g., top-right, bottom-left, etc.).

You can find the psnotification package on npm.

Installation

To install psnotification, run the following command:

npm install psnotification

Usage

To use the notification component globally in your Vue 3 project, import it into your main.js (or main.ts if you're using TypeScript)

import PsNotification from "psnotification";
import "psnotification/dist/psnotification.css";

const app = createApp(App);
app.use(PsNotification);
app.mount("#app");

This will make the PsNotification component available for use throughout your project.

Component Usage

You can now use the PsNotification component in any Vue component by including it in your template

<template>
  <PsNotification message="Hello, World!" status="success" position="top-right" />
</template>

<script setup>
import PsNotification from 'psnotification';
</script>

Props

PropTypeDescriptionDefault
messageStringThe text you want to display in the notification (required).-
statusStringhe status type for the notification (optional). Possible values: success, error, warning, info.-
positionStringThe position of the notification on the screen (optional). Possible values: top-right,top-left
0.2.1

5 months ago

0.2.0

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago