1.2.20 • Published 4 years ago

@ppci-mock/custom-dialog v1.2.20

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Dialog

Table of contents

Installation

NPM

npm i @ppci-mock/custom-dialog

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

Usage

Javascript

import '@ppci-mock/custom-dialog'

Browser

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

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

<!-- Component -->
<custom-dialog
  @close=${Function}
  ?loading=${Boolean}
  ?open=${Boolean}
>
  <div>Place dialog content here</div>
</custom-dialog>

Styling

custom-dialog {
  --theme-dialog-backdrop: white;
}

Properties

Events