@ppci-mock/source-list
v1.4.26
Published
Source list
Downloads
4
Readme
Source List
A grid of all available sources
Table of contents
Installation
NPM
npm i @ppci-mock/custom-input
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci-mock/source-list'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/source-list/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/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;
}
}