1.2.3 • Published 5 years ago

@ppci/custom-notification v1.2.3

Weekly downloads
17
License
ISC
Repository
-
Last release
5 years ago

Notification

Table of contents

Installation

NPM

npm i @ppci/custom-notification

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript

import '@ppci/custom-notification'

Browser

<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-notification/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-notification/builds/legacy.min.js" />

<!-- Component -->
<custom-notification
  title=${String}
  subtitle=${String}
>
  <button slot="buttons">Cancel</button>
  <button slot="buttons">Confirm</button>
</custom-notification>

Styling

custom-notification {
  --danger: /* new color */
  --warning: /* new color */
  --success: /* new color */
}

Properties

1.2.3

5 years ago

1.2.2

5 years ago

1.2.0

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago