JSPM

  • Created
  • Published
  • Downloads 91
  • Score
    100M100P100Q91204F
  • License ISC

GITS Alert Component

Package Exports

  • @gits-id/alert
  • @gits-id/alert/src/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gits-id/alert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GITS Alert

GITS Alert component is a flexible alert component that can be used to display various types of messages to the user.

Installation

Install with your prefered package manager.

With NPM:

npm i @gits-id/alert

With Yarn:

yarn add @gits-id/alert

With PNPM:

pnpm i @gits-id/alert

Usage

To use the component, you can simply include it in your template like this:

<script setup lang="ts">
// import component
import VAlert from '@gits-id/alert';
// import styles (includes dark mode)
import '@gits-id/alert/dist/style.css';
// or import the SASS styles
import '@gits-id/alert/src/VAlert.scss';
// if are using SASS bundle and want to add dark mode support,
// uncomment this line
// import '@gits-id/alert/src/VAlert.dark.scss';
</script>

<template>
  <VAlert color="primary"> Hello World </VAlert>
</template>

Documentation

View full documentation here.

License

MIT