0.1.20 • Published 4 years ago
@ppci-mock/custom-checkbox v0.1.20
Checkbox
Table of contents
Installation
NPM
npm i @ppci-mock/custom-checkbox
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci-mock/custom-checkbox'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/custom-checkbox/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/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 {
}