Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created July 24, 2021 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/1fe398feea791cd1eb530e4eedf0bcc4 to your computer and use it in GitHub Desktop.
Save nolanlawson/1fe398feea791cd1eb530e4eedf0bcc4 to your computer and use it in GitHub Desktop.
Basic emoji-picker-element typescript example
import { Picker } from 'emoji-picker-element'
const picker = new Picker()
document.body.appendChild(picker)
{
"name": "repro-emoji-picker-ts",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"emoji-picker-element": {
"version": "1.6.4",
"resolved": "https://registry.npmjs.org/emoji-picker-element/-/emoji-picker-element-1.6.4.tgz",
"integrity": "sha512-KSSj9ri/0mOUv6Hylg/UU00lXVSuNPLRT8Cy7K2ktbkk7YZYcCnt4jSLuOAFnLiNQvCRpnvxVtgM+g81tc0JGA=="
},
"typescript": {
"version": "4.3.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz",
"integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA=="
}
}
}
{
"name": "repro-emoji-picker-ts",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "tsc index.ts"
},
"dependencies": {
"emoji-picker-element": "^1.6.4",
"typescript": "^4.3.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment