Gathering detailed insights and metrics for emoji-mart-lite
Gathering detailed insights and metrics for emoji-mart-lite
npm install emoji-mart-lite
Typescript
Module System
Node Version
NPM Version
84.4
Supply Chain
99.3
Quality
77.7
Maintenance
100
Vulnerability
100
License
JavaScript (88.1%)
CSS (10.03%)
HTML (1.87%)
Total Downloads
1,380,203
Last Day
1,333
Last Week
5,274
Last Month
20,457
Last Year
332,826
5 Stars
234 Commits
1 Forks
2 Watching
5 Branches
2 Contributors
Minified
Minified + Gzipped
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
Cumulative downloads
Total Downloads
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
1
23
emoji-mart
INSTEADemoji-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!
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 |
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}
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 |
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}
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 |
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// => [🎄, 🎅🏼, 🔔, 🎁, ⛄️, ❄️]
Not only does Emoji Mart return more results than most emoji picker, they’re more accurate and sorted by relevance.
The only emoji picker that returns emojis when searching for emoticons.
For better results, Emoji Mart split search into words and only returns results matching both terms.
As the developer, you have control over which skin color is used by default.
It can however be overwritten as per user preference.
Apple / Google / Twitter / EmojiOne
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.
1$ yarn run build:data 2$ yarn run watch 3$ open example/index.html
Powered by iamcal/emoji-data and inspired by iamcal/js-emoji.
🙌🏼 Cal Henderson.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
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
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
76 existing vulnerabilities detected
Details
Score
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