@evergreen-wc/eve-gallery

0.1.1 • Public • Published

eve-gallery

An Evergreen Gallery Web Component

Demo

Install

npm i @evergreen-wc/eve-gallery

Usage

import { html, LitElement } from 'lit';
import '@evergreen-wc/eve-gallery';

const images = [
  { src: '/assets/bee-6127510_640.jpg' },
  { src: '/assets/cake-4890393_640.jpg' },
  { src: '/assets/child-6109480_640.jpg' },
  { src: '/assets/concert-5878452_640.jpg' },
  { src: '/assets/daffodils-1316128_640.jpg' },
  { src: '/assets/easter-4945288_640.jpg' },
  { src: '/assets/easter-6035549_640.jpg' },
  { src: '/assets/eggs-3216877_640.jpg' },
  { src: '/assets/field-6109500_640.jpg' },
  { src: '/assets/willow-catkin-2249018_640.png' },
  { src: '/assets/willow-catkin-4949064_640.jpg' },
  { src: '/assets/wood-anemone-4112178_640.jpg' }
];

class SomeComponent extends LitElement {
  render() {
    return html`
      <eve-gallery autoplay .images="\${images}"/>
    `;
  }
}
customElements.define('some-component', SomeComponent);

Props

Property Description
images array of image objects { src: 'image.jpg' }
carousel default false. toggle carousel visibility on click
autoplay default false. add autoplay to toggle carousel autoplay

Readme

Keywords

none

Package Sidebar

Install

npm i @evergreen-wc/eve-gallery

Weekly Downloads

2

Version

0.1.1

License

Apache-2.0

Unpacked Size

28.8 kB

Total Files

12

Last publish

Collaborators

  • hutchgrant