Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

wired-combo

v1.0.0arrow_drop_down
v1.0.0
v0.9.2
STATUS
Passing
DOWNLOADS
8
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
14 KB
Combobox control - similar to a native browser select element; with a hand-drawn, wireframe like, style.
1 contributor
Use wired-combo in your project ?
Copied
npm i @bit/wiredjs.wired-elements.wired-combo
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

wired combo

wired-combo

Combobox control - similar to a native browser select element; with a hand-drawn, wireframe like, style.

For demo and view the complete set of wired-elememts: wiredjs.com

Usage

Add wired-combo to your project:

npm i wired-combo

Import wired-combo definition into your HTML page:

<script type="module" src="wired-combo/lib/wired-combo.js"></script>

Or into your module script:

import { WiredCombo } from "wired-combo"

Use it in your web page:

<wired-combo id="combo" selected="two">
  <wired-item value="one">Number One</wired-item>
  <wired-item value="two">Number Two</wired-item>
  <wired-item value="three">Number Three</wired-item>
</wired-combo>

Properties

disabled - disables the combo selector. Default value is false.

selected - Value of the selected wired-item.

Custom CSS Variables

–wired-combo-popup-bg Background color of the dropdown when combo selector is open.

–wired-item-selected-bg Background color of the selected item

Events

selected event fired when an item is selected by the user.

License

MIT License © Preet Shihn