All Projects → 1000ch → x-notification

1000ch / x-notification

Licence: MIT license
Declarative Browser Notification as Web Components.

Programming Languages

HTML
75241 projects
typescript
32286 projects

Projects that are alternatives of or similar to x-notification

Elements
Lazy load Angular Elements (or any other web components / custom elements ) with ease!
Stars: ✭ 223 (+502.7%)
Mutual labels:  web-components
Eplayer
🔮 A web-component html5 video player facing future
Stars: ✭ 253 (+583.78%)
Mutual labels:  web-components
webcomponents.dev
Web Components IDE
Stars: ✭ 51 (+37.84%)
Mutual labels:  web-components
Progressive Image Element
⚡️ <progressive-image> custom element
Stars: ✭ 231 (+524.32%)
Mutual labels:  web-components
Prettyhtml
💅 The formatter for the modern web https://prettyhtml.netlify.com/
Stars: ✭ 241 (+551.35%)
Mutual labels:  web-components
twitter-status
Twitter Status Web Component
Stars: ✭ 59 (+59.46%)
Mutual labels:  web-components
Auto Complete Element
Auto-complete input values from server search results.
Stars: ✭ 213 (+475.68%)
Mutual labels:  web-components
aurum
Fast and concise declarative DOM rendering library for javascript
Stars: ✭ 17 (-54.05%)
Mutual labels:  web-components
Vue Ui Framework
My personal collection of Vue UI framework
Stars: ✭ 245 (+562.16%)
Mutual labels:  web-components
open-ui
Maintain an open standard for UI and promote its adherence and adoption.
Stars: ✭ 2,539 (+6762.16%)
Mutual labels:  web-components
Numl
A UI Design Language, WC UI Library, and Runtime CSS Framework for rapidly building interfaces that follow your Design System 🌈
Stars: ✭ 229 (+518.92%)
Mutual labels:  web-components
Tab Container Element
An accessible tab container element with keyboard support.
Stars: ✭ 238 (+543.24%)
Mutual labels:  web-components
web-components
A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
Stars: ✭ 322 (+770.27%)
Mutual labels:  web-components
Jqwidgets
Angular, Vue, React, Web Components, Blazor, Javascript, jQuery and ASP .NET Framework,
Stars: ✭ 227 (+513.51%)
Mutual labels:  web-components
vaadin-select
Customizable Web Component similar to a native browser select. Part of the Vaadin components.
Stars: ✭ 18 (-51.35%)
Mutual labels:  web-components
Ui5 Webcomponents React
A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
Stars: ✭ 220 (+494.59%)
Mutual labels:  web-components
Storybook
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!
Stars: ✭ 67,445 (+182183.78%)
Mutual labels:  web-components
ocean
Web component server-side rendering
Stars: ✭ 165 (+345.95%)
Mutual labels:  web-components
fluent-web
A web component for using projectfluent.org/
Stars: ✭ 41 (+10.81%)
Mutual labels:  web-components
Dashi
💯 Get a notification in Slack every time someone asks you to check some code on Github or Bitbucket.
Stars: ✭ 29 (-21.62%)
Mutual labels:  notification

x-notification GitHub Actions Status

Declarative Browser Notification as Web Components.

Install

Using npm:

$ npm install x-notification

Usage

Import XNotification and register it.

<script type="module">
import XNotification from 'https://unpkg.com/x-notification';

customElements.define('x-notification', XNotification);
</script>

Put <x-notification> tag.

<x-notification autoshow title="Notification Title" delay="1000" timeout="3000" tag="tag">
  Notification body
</x-notification>

If you set autoshow attribute, a notification will be shown automatically.

To show it manually, execute show() function.

document.querySelector('x-notification').show();

Attributes

title=<String>

This is a required option . This will be set as notification title.

dir=<String>

The direction of the notification. It can be auto , ltr , or rtl .

lang=<String>

Specify the language used within the notification.

body=<String>

A string representing an extra content to display within the notification.

tag=<String>

An ID for a given notification that allows to retrieve, replace or remove it if necessary.

icon=<String>

The URL of an image to be used as an icon by the notification.

delay=<Number>

Delay for timing to show notification.

timeout=<Number>

Timeout for timing to close notification automatically.

autoshow

If you add this attribute, notification will be shown automatically.

License

MIT © Shogo Sensui

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].