oui-notification

0.9.2 • Public • Published

oui-notification

[!NOTE] oui componentents are headless i.e. they do not come with CSS by default. These examples import CSS syles, but you are free to do it from scratch as well.

Simple notofications

<script lang="ts" setup>
import { OuiNotificationActivator, emitNotificationInfo } from 'oui-notification'

import 'oui-notification/css'

function doEmit() {
  emitNotificationInfo('Hello', 'This is a test', 2000)
}
</script>

<template>
  <button @click="doEmit">
    Notification
  </button>
  <OuiNotificationActivator />
</template>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.2
    1
    • latest

Version History

Package Sidebar

Install

npm i oui-notification

Weekly Downloads

1

Version

0.9.2

License

MIT

Unpacked Size

16.9 kB

Total Files

12

Last publish

Collaborators

  • holtwick