0.1.4 • Published 4 years ago

@ppci/custom-checkbox v0.1.4

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

Checkbox

Table of contents

Installation

NPM

npm i @ppci/custom-checkbox

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

Usage

Javascript

import '@ppci/custom-checkbox'

Browser

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

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

<!-- Component -->
<custom-checkbox
  name=${String}
  label=${String}
  placeholder=${String}
  @change=${Function}
  @change-delayed=${Function}
  ?checked=${Boolean}
></custom-checkbox>

Styling

custom-checkbox {
}

Properties

Events