All Projects → pshihn → emoji-slider

pshihn / emoji-slider

Licence: MIT license
A slider control with emojis

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to emoji-slider

svelte-slidy
📸 Sliding action script
Stars: ✭ 211 (+427.5%)
Mutual labels:  slider, webcomponent
drag
🏄 A lightweight JavaScript "hold and drag" utility. Vanilla JS - No dependencies.
Stars: ✭ 41 (+2.5%)
Mutual labels:  slider
EmojiText
This is a EmojiText solution for Unity3D UI
Stars: ✭ 74 (+85%)
Mutual labels:  emoji
Spotify-Telegram-Bio-Updater
Spotify Telegram Bio Updater Heroku Integration
Stars: ✭ 26 (-35%)
Mutual labels:  emoji
emoji-helper-php
去除过滤emoji表情、判断是否包含emoji表情,输出emoji表情的16进制字符串,对于没有使用utf8mb4编码数据库的项目,这个必不可少
Stars: ✭ 29 (-27.5%)
Mutual labels:  emoji
KeyboardKitPro
KeyboardKit Pro extends KeyboardKit with pro features.
Stars: ✭ 42 (+5%)
Mutual labels:  emoji
EmojiConverter
Android Library for EditText
Stars: ✭ 35 (-12.5%)
Mutual labels:  emoji
icons
a collection of custom icons for use with the notion-enhancer's "icon sets" integration
Stars: ✭ 29 (-27.5%)
Mutual labels:  emoji
gif-player
Control your animated GIFs
Stars: ✭ 120 (+200%)
Mutual labels:  webcomponent
vue-active-swiper
🌴 A Mobile-oriented、No dependencies、Lightweight Swiper component for Vue
Stars: ✭ 33 (-17.5%)
Mutual labels:  slider
habitipy
Command-line interface to Habitica
Stars: ✭ 47 (+17.5%)
Mutual labels:  emoji
emoji-db
A database of Apple-supported emojis in JSON format. Used by my Alfred emoji workflow.
Stars: ✭ 32 (-20%)
Mutual labels:  emoji
angular-simple-slider
An AngularJS directive providing a simple slider functionality
Stars: ✭ 15 (-62.5%)
Mutual labels:  slider
FacebookChatStatistics
Statistics of any Facebook Messenger conversation
Stars: ✭ 49 (+22.5%)
Mutual labels:  emoji
winmoji
Emoji lookup for Windows 😉 https://www.winmoji.com https://twitter.com/winmoji
Stars: ✭ 79 (+97.5%)
Mutual labels:  emoji
emot
Open source Emoticons and Emoji detection library: emot
Stars: ✭ 178 (+345%)
Mutual labels:  emoji
KJCircularSlider
Slide circularly. Soon more extended version about to come!
Stars: ✭ 23 (-42.5%)
Mutual labels:  slider
slack-emoji-upload
Slack emoji uploader, CLI. single binary, no dependencies. linux, osx, windows.
Stars: ✭ 28 (-30%)
Mutual labels:  emoji
DoubleSliderView-swift
双向滑动,滑块可以重叠, 左边滑块不能移动到右边滑块的右边。Two slider can overlap, and the left slider can not be moved to right of the right slider
Stars: ✭ 28 (-30%)
Mutual labels:  slider
country-flag-emoji-json
Country flag emojis in JSON format.
Stars: ✭ 92 (+130%)
Mutual labels:  emoji

emoji-slider

A slider control which uses an emoji as the thumb.

This is built as a web component, so it's usable anywhere with HTML.

View live demo.

Emoji Slider

Usage

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.

Properties

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

Events

change event is fired as the slider value changes. the current value can be obtained from the event details: event.detail.value

Styling

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;
}

License

MIT License (c) Preet Shihn

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].