@ppci-test/custom-select
v0.0.0
Published
Selectbox
Downloads
1
Readme
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.