
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
blue-select
Advanced tools
A small, flexible custom select widget class. Works seamlessly with blue-widgets or standalone.
Check out the examples
This is a UMD module, so can be consumed any way you like
Install via npm npm install blue-select --save
Or include blue-select.js from the ./dist folder in your page
var BlueSelect = require('blue-select')
var el = document.querySelector('#foo')
new BlueSelect(el)
import BlueSelect from 'blue-select'
const el = document.querySelector('#foo')
new BlueSelect(el)
<div class="select" id="Foo">
<select name="SomeSelect">
<option value="">Please select</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
<script src="blue-select.js"></script>
<script>
var el = document.querySelector('#foo')
new BlueSelect(el)
</script>
The module implements BEM class naming for the fake value and arrow elements it creates. The 'block' class name is taken from the first class present on the container element on which you instantiated the class. So in the above case the classes would be: .select, .select__value and .select__arrow
Some CSS will be required to hide the select and style the arrows and fake value, none is included in the script. This implementation is left to you.
When the select is focused the container will have an is-focused state class
This is the base level of styling required:
.custom-select {
position: relative;
}
.custom-select select {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 0;
font-size: inherit;
z-index: 1;
}
Standard JS applies
camelCase for function and variable names
Standard Github Flow - branch, submit pull requests
npm install or yarn installnpm run build to compile the dist versionFAQs
A simple styled/custom html select class implementation
We found that blue-select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.