New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

component-simple-slider

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-simple-slider

A simple slider component as a Custom Element

0.1.0
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

component-simple-slider

GitHub release CircleCI branch GitHub issues GitHub issues GitHub license

A very naive slider component using Custom Element and Shadow DOM based components to serve as a proof of concept for publishing and consuming Custom Elements from npm.

Installation

  • If you aren't already using it, use npm or Yarn to install @polymer/lit-element to your project's dependencies
  • Install @???/component-simple-slider

This component makes no assumptions about polyfills, please provide your own.

Usage

Two things are needed when using this componenet

  • Number of slides slides="3"
  • Each Slide, with an attribute of slots="slideN" (N should increment starting from 1)

example:

<x-simple-slider slots="3">
  <div slot="slide1">Slide 1</div>
  <div slot="slide2">Slide 3</div>
  <div slot="slide3">Slide 3</div>
</x-simple-slider>

Development

This project uses Yarn, please install it first

  • For a dev server running a "reference app", run yarn develop
  • To run unit tests, run yarn test

FAQs

Package last updated on 05 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts