Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
emoji-slider
Advanced tools
A slider control which uses an emoji as the thumb.
This is built as a web component, so it's usable anywhere with HTML.
Get the compoent
npm install --save emoji-slider
Import in a JavaScript module:
import 'emoji-slider';
Or in an HTML page:
<script type="module" src="./node_module/emoji-slider/bin/emoji-slider.js"></script>
And then use it in HTML
<emoji-slider emoji="😍"></emoji-slider>
More about using web components here.
value: The numeric value of the slider between 0 and 1.
emoji: The emoji character to use in the thumb of the slider. If not set, a circular thumb is used.
step: The change in value when controlling the slider with keyboard e.g., Right Arrow Key will increate the value by 0.1. Default value of step is 0.1
The slider bar color (and active color) be styled using CSS properties. For example,
emoji-slider {
--emoji-slider-bar-color: red;
--emoji-slider-bar-active-color: green;
}
FAQs
A slider control using emojis
The npm package emoji-slider receives a total of 9 weekly downloads. As such, emoji-slider popularity was classified as not popular.
We found that emoji-slider 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.