Installations
npm install emoji-mart-lite
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.16.3
NPM Version
6.14.4
Score
84.4
Supply Chain
99.3
Quality
77.7
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (88.1%)
CSS (10.03%)
HTML (1.87%)
Developer
Download Statistics
Total Downloads
1,380,203
Last Day
1,333
Last Week
5,274
Last Month
20,457
Last Year
332,826
GitHub Statistics
5 Stars
234 Commits
1 Forks
2 Watching
5 Branches
2 Contributors
Bundle Size
179.69 kB
Minified
48.56 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.6.1
Package Id
emoji-mart-lite@0.6.1
Unpacked Size
2.10 MB
Size
510.32 kB
File Count
40
NPM Version
6.14.4
Node Version
12.16.3
Total Downloads
Cumulative downloads
Total Downloads
1,380,203
Last day
-13.2%
1,333
Compared to previous day
Last week
20.9%
5,274
Compared to previous week
Last month
-26.9%
20,457
Compared to previous month
Last year
-7.2%
332,826
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
23
THIS FORK IS NO LONGER MAINTAINED. CONSIDER USING emoji-mart
INSTEAD
emoji-mart-lite
emoji-mart-lite
is a fork of emoji-mart
that only supports native emojis, and prunes additional code/metadata
to reduce the size of the package.
To give an idea of the difference in space, as of 2/28/17:
emoji-mart
bundle sizes: 488k (minified), 84k (when gzipped)emoji-mart-lite
bundle sizes: 170k (minified), 45k (when gzipped)
Available on npm!
Emoji Mart is a Slack-like customizable
emoji picker component for React
[Demo]
Brought to you by the Missive team
Components
Picker
1import { Picker } from 'emoji-mart' 2 3<Picker set='emojione' /> 4<Picker onClick={this.addEmoji} /> 5<Picker title='Pick your emoji…' emoji='point_up' /> 6<Picker style={{ position: 'absolute', bottom: '20px', right: '20px' }} /> 7<Picker i18n={{ search: 'Recherche', categories: { search: 'Résultats de recherche', recent: 'Récents' } }} />
Prop | Required | Default | Description |
---|---|---|---|
color | #ae65c5 | The top bar anchors select and hover color | |
emoji | department_store | The emoji shown when no emojis are hovered | |
emojiSize | 24 | The emoji width and height | |
onClick | Params: (emoji, event) => {} | ||
perLine | 9 | Number of emojis per line. While there’s no minimum or maximum, this will affect the picker’s width. This will set Frequently Used length as well (perLine * 4 ) | |
i18n | {…} | An object containing localized strings | |
native | false | Renders the native unicode emoji | |
set | apple | The emoji set: 'apple', 'google', 'twitter', 'emojione' | |
sheetSize | 64 | The emoji sheet size: 16, 20, 32, 64 | |
backgroundImageFn | ((set, sheetSize) => `https://unpkg.com/emoji-datasource@2.4.4/sheet_${set}_${sheetSize}.png`) | A Fn that returns that image sheet to use for emojis. Useful for avoiding a request if you have the sheet locally. | |
emojisToShowFilter | ((unicode) => true) | A Fn to choose whether an emoji should be displayed or not based on its unicode | |
skin | 1 | Default skin color: 1, 2, 3, 4, 5, 6 | |
style | Inline styles applied to the root element. Useful for positioning | ||
title | Emoji Mart™ | The title shown when no emojis are hovered |
I18n
1search: 'Search', 2categories: { 3 search: 'Search Results', 4 recent: 'Frequently Used', 5 people: 'Smileys & People', 6 nature: 'Animals & Nature', 7 foods: 'Food & Drink', 8 activity: 'Activity', 9 places: 'Travel & Places', 10 objects: 'Objects', 11 symbols: 'Symbols', 12 flags: 'Flags', 13}
Sheet sizes
Sheets are served from unpkg, a global CDN that serves files published to npm.
Set | sheetSize | Size |
---|---|---|
apple | 16 | 938.7 kB |
apple | 20 | 1.3 MB |
apple | 32 | 2.6 MB |
apple | 64 | 7.2 MB |
emojione | 16 | 805.5 kB |
emojione | 20 | 1.1 MB |
emojione | 32 | 2.0 MB |
emojione | 64 | 2.7 MB |
16 | 622.6 kB | |
20 | 849.8 kB | |
32 | 1.6 MB | |
64 | 3.6 MB | |
16 | 776.0 kB | |
20 | 1.0 MB | |
32 | 1.9 MB | |
64 | 4.2 MB |
Examples of emoji
object:
1{ 2 id: 'smiley', 3 name: 'Smiling Face with Open Mouth', 4 colons: ':smiley:', 5 emoticons: [ 6 '=)', 7 '=-)' 8 ], 9 skin: null, 10 native: '😃' 11} 12 13{ 14 id: 'santa', 15 name: 'Father Christmas', 16 colons: ':santa::skin-tone-3:', 17 emoticons: [], 18 skin: 3, 19 native: '🎅🏼' 20}
Emoji
1import { Emoji } from 'emoji-mart' 2 3<Emoji emoji={{ id: 'santa', skin: 3 }} /> 4<Emoji emoji=':santa::skin-tone-3:' /> 5<Emoji emoji='santa' set='emojione' />
Prop | Required | Default | Description |
---|---|---|---|
emoji | ✓ | Either a string or an emoji object | |
size | ✓ | The emoji width and height. | |
native | false | Renders the native unicode emoji | |
onClick | Params: (emoji, event) => {} | ||
onLeave | Params: (emoji, event) => {} | ||
onOver | Params: (emoji, event) => {} | ||
set | apple | The emoji set: 'apple', 'google', 'twitter', 'emojione' | |
sheetSize | 64 | The emoji sheet size: 16, 20, 32, 64 | |
backgroundImageFn | ((set, sheetSize) => `https://unpkg.com/emoji-datasource@2.4.4/sheet_${set}_${sheetSize}.png`) | A Fn that returns that image sheet to use for emojis. Useful for avoiding a request if you have the sheet locally. | |
skin | 1 | Skin color: 1, 2, 3, 4, 5, 6 |
Headless search
The Picker
doesn’t have to be mounted for you to take advantage of the advanced search results.
1import { emojiIndex } from 'emoji-mart' 2 3emojiIndex.search('christmas').map((o) => o.native) 4// => [🎄, 🎅🏼, 🔔, 🎁, ⛄️, ❄️]
Features
Powerful search
Short name, name and keywords
Not only does Emoji Mart return more results than most emoji picker, they’re more accurate and sorted by relevance.
Emoticons
The only emoji picker that returns emojis when searching for emoticons.
Results intersection
For better results, Emoji Mart split search into words and only returns results matching both terms.
Fully customizable
Anchors color, title and default emoji
Emojis sizes and length
Default skin color
As the developer, you have control over which skin color is used by default.
It can however be overwritten as per user preference.
Multiple sets supported
Apple / Google / Twitter / EmojiOne
Not opinionated
Emoji Mart doesn’t automatically insert anything into a text input, nor does it show or hide itself. It simply returns an emoji
object. It’s up to the developer to mount/unmount (it’s fast!) and position the picker. You can use the returned object as props for the EmojiMart.Emoji
component. You could also use emoji.colons
to insert text into a textarea or emoji.native
to use the emoji.
Development
1$ yarn run build:data 2$ yarn run watch 3$ open example/index.html
🎩 Hat tips!
Powered by iamcal/emoji-data and inspired by iamcal/js-emoji.
🙌🏼 Cal Henderson.
Missive mixes team email and threaded group chat for productive teams.
A single app for all your internal and external communication and a full work management solution.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 3-Clause "New" or "Revised" License: LICENSE:0
Reason
Found 5/16 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
76 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-832h-xg76-4gv6
- Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx
- Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-hr2v-3952-633q
- Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m
- Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w
- Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2
- Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3
- Warn: Project is vulnerable to: MAL-2023-462
- Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c
- Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq
- Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm
- Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp
- Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr
- Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q
- Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c
- Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp
- Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-q75g-2496-mxpp
- Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3
- Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj
- Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4
- Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq
- Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9
- Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3
- Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7
- Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472
- Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v
- Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx
- Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3
- Warn: Project is vulnerable to: GHSA-pjmx-9xr3-82qr
- Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-5v72-xg48-5rpm
- Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5
- Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg
Score
2.1
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More