0.0.0 • Published 5 years ago

@ppci-test/custom-select v0.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Dropdown

A dropdown

Table of contents

Installation

CDN

  <script type='module' src="http://developer.powerpeers.com/social/1.0.0/custom-select.js" />

NPM

  npm i @ppci/custom-select

Usage

// Javascript import
import '@ppci/custom-select'
<!-- or module import -->
<script type="module" src="http://developer.powerpeers.com/social/1.0.0/custom-select.js" />
const options =  [
  { label: 'Solar panel', value: '1' },
  { label: 'Wind', value: '2' },
];

<custom-select
  name="devices"
  label="Devices"
  placeholder="Select a device"
  options=${options}
  @click=${onClick}>
</custom-button>

Theme | Styling

custom-select {
}

Properties

Events

Changelog

1.0.0 ( Major )

  • Initial version of the custom select.