JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q43867F
  • License ISC

Html grid

Package Exports

  • @ppci/grid-view

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/grid-view) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Grid

This is a simple css grid view. The grid is build upon CSS Grid Layout Module. Therefore, you are able to apply CSS Grid layout functionalities to your own 'grid content'.

Table of contents

  1. Installation
  2. Usage
  3. Theme | Styling
  4. Properties
  5. Changelog

Installation

NPM

  npm i @ppci/grid-view

Usage

Javascript

import '@ppci/grid-view'

Browser

<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/grid-view/builds/index.min.js" />

<grid-view
  rowSize="String"
>
  <slot></slot>
</grid-view>

Theme | Styling

Available css variables

grid-view {
  --grid-columns: 4;
  --grid--column-width: 1f;

  /* Responsive */
  @media (max-width: 600px) {
     --grid-columns: 2;
  }
}

Properties

Property Type Description Possible Values
rowSize number Amount of columns on a row 0,1,2,...N

Changelog

1.0.1 | 1.0.2 | 1.0.3

  • Bundle and minify related fixes

1.0.0 ( Major )

  • Initial version of the grid view.