@ppci/source-list
v1.4.15
Published
Source list
Downloads
10
Readme
Source List
A grid of all available sources
Table of contents
Installation
NPM
npm i @ppci/custom-input
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/source-list'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-list/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-list/builds/legacy.min.js" />
<!-- Component -->
<source-list
.sources=${Array}
@load-more-click=${Function}
></source-list>
Styling
source-list {
--grid-columns: 4;
--grid--column-width: 1f;
/* Responsive */
@media (max-width: 600px) {
--grid-columns: 2;
}
}