{"id":14990209,"url":"https://github.com/pshihn/emoji-slider","last_synced_at":"2025-04-12T02:06:02.388Z","repository":{"id":48023277,"uuid":"169825218","full_name":"pshihn/emoji-slider","owner":"pshihn","description":"A slider control with  emojis","archived":false,"fork":false,"pushed_at":"2023-01-21T10:37:55.000Z","size":8121,"stargazers_count":42,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T02:05:57.243Z","etag":null,"topics":["emoji","slider","webcomponent"],"latest_commit_sha":null,"homepage":"https://pshihn.github.io/emoji-slider/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pshihn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-09T02:46:02.000Z","updated_at":"2024-09-29T15:32:57.000Z","dependencies_parsed_at":"2023-02-12T09:00:46.592Z","dependency_job_id":null,"html_url":"https://github.com/pshihn/emoji-slider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pshihn%2Femoji-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pshihn%2Femoji-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pshihn%2Femoji-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pshihn%2Femoji-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pshihn","download_url":"https://codeload.github.com/pshihn/emoji-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505862,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","slider","webcomponent"],"created_at":"2024-09-24T14:19:42.738Z","updated_at":"2025-04-12T02:06:02.364Z","avatar_url":"https://github.com/pshihn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emoji-slider\nA slider control which uses an emoji as the thumb.\n\nThis is built as a web component, so it's usable anywhere with HTML.\n\n[View live demo.](https://pshihn.github.io/emoji-slider/demo/)\n\n![Emoji Slider](https://i.imgur.com/RyyBB6B.png)\n\n## Usage\n\nGet the compoent \n\n```\nnpm install --save emoji-slider\n```\n\nImport in a JavaScript module:\n\n``` javascript\nimport 'emoji-slider';\n```\n\nOr in an HTML page:\n```html\n\u003cscript type=\"module\" src=\"./node_module/emoji-slider/bin/emoji-slider.js\"\u003e\u003c/script\u003e\n```\n\nAnd then use it in HTML\n\n```\n\u003cemoji-slider emoji=\"😍\"\u003e\u003c/emoji-slider\u003e\n```\n\nMore about using web components [here](https://lit-element.polymer-project.org/guide/use).\n\n## Properties\n\n**value:** The numeric value of the slider between 0 and 1.\n\n**emoji:** The emoji character to use in the thumb of the slider. If not set, a circular thumb is used.\n\n**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\n\n## Events\n**change** event is fired as the slider value changes. the current value can be obtained from the event details: `event.detail.value`\n\n## Styling\nThe slider bar color (and active color) be styled using CSS properties. For example,\n\n```css\nemoji-slider {\n  --emoji-slider-bar-color: red;\n  --emoji-slider-bar-active-color: green;\n}\n```\n\n## License\n[MIT License](https://github.com/pshihn/emoji-slider/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpshihn%2Femoji-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpshihn%2Femoji-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpshihn%2Femoji-slider/lists"}