Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 565 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 565 Bytes

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 { emitNotificationInfo, OuiNotificationActivator } 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>