g-emoji-element

Backports native emoji characters to browsers that don't support them by replacing the characters with fallback images.

MIT License

Downloads
13.5K
Stars
136
Committers
6

Bot releases are hidden (Show)

g-emoji-element - v1.2.0 Latest Release

Published by camertron about 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/github/g-emoji-element/compare/v1.1.6...v1.2.0

g-emoji-element - v1.1.6

Published by koddsson over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/github/g-emoji-element/compare/v1.1.5...v1.1.6

g-emoji-element - v1.1.5

Published by muan over 4 years ago

  • Exclude Android Chrome from onLinux check
g-emoji-element - v1.1.4

Published by muan over 4 years ago

  • Convert to TypeScript/remove Flow type support.
  • Package is now type module. UMD build is removed.
  • Fix emoji content getting cleared even when fallback-src isn't present.
g-emoji-element -

Published by koddsson over 4 years ago

  • Add type to HTMLElementTagNameMap in typescript declaration file (#23)

https://github.com/github/g-emoji-element/compare/v1.1.2...v1.1.3

g-emoji-element - 1.1.1

Published by dgraham almost 5 years ago

g-emoji-element - 1.1.0

Published by dgraham almost 5 years ago

g-emoji-element -

Published by keithamus about 5 years ago

  • types(ts): add window declaration abb0eaf
  • Bump eslint-utils from 1.3.1 to 1.4.2 2359d7c

https://github.com/github/g-emoji-element/compare/v1.0.5...v1.0.6

g-emoji-element -

Published by koddsson about 5 years ago

  • Merge pull request #14 from github/publish-to-gpr-as-well 3cb46fa
  • publish to GPR as a postpublish step 689850f

https://github.com/github/g-emoji-element/compare/v1.0.4...v1.0.5

g-emoji-element - 1.0.5

Published by koddsson about 5 years ago

<g-emoji> element

Backports native emoji characters to browsers that don't support them by replacing the characters with fallback images.

Installation

$ npm install @github/g-emoji-element

Usage

import '@github/g-emoji-element'
<g-emoji fallback-src="t-rex.png" alias="T-Rex">🦖</g-emoji>

If a browser supports emoji, nothing happens. If a browser does not support emoji, a fallback image tag is created:

<g-emoji fallback-src="t-rex.png" alias="T-Rex">
  <img class="emoji" alt="T-Rex" height="20" width="20" src="t-rex.png">
</g-emoji>

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

g-emoji-element -

Published by koddsson about 5 years ago

  • Merge pull request #13 from github/dependabot/npm_and_yarn/lodash-4.17.15 bb72ecd
  • Bump lodash from 4.17.11 to 4.17.15 2368106

https://github.com/github/g-emoji-element/compare/v1.0.3...v1.0.4

g-emoji-element -

Published by koddsson over 5 years ago

  • Merge pull request #12 from github/add-typescript-definition-file c2f03a2
  • don't copy typescript definitions 7e81adf
  • create index.d.ts 376ae3f

https://github.com/github/g-emoji-element/compare/v1.0.2...v1.0.3

g-emoji-element -

Published by koddsson over 5 years ago

  • Merge pull request #10 from github/update-deps 083db66
  • update eslint, eslint-plugin-github and flow-bin manually to latest versions a1a0397
  • run npm update fed317d

https://github.com/github/g-emoji-element/compare/v1.0.1...v1.0.2

g-emoji-element -

Published by koddsson over 5 years ago

  • Add flow definition file for the element API

https://github.com/github/g-emoji-element/compare/v1.0.0...v1.0.1