Skip to content

Ember CLI addon providing EmojiOne component helpers

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

omarestrella/ember-emoji

Repository files navigation

ember-emoji

The goal of ember-emoji is to provide applications with a complete set of components & helpers to include emojis in their project, courtesy of EmojiOne.

Demo:

Requirements

  • Ember.js 2.12+
  • Node.js 6.10+

Installation

Run the following command:

$ ember install ember-emoji

And thats it!

Usage

emoji-picker

A component that displays an emoji picker. Emojis are separated into different categories. You can provide an action to handle a user selecting an emoji.

Usage

{{emoji-picker selectEmoji=(action "selectEmoji")}}

emoji-icon

A component to render any emoji from any emoji shortcode. You can provide an action to handle the user selecting the emoji.

Usage

{{emoji-icon emoji=":grinning:" selectEmoji=(action "selectEmoji")

emoji-parse

A template helper that parses given text with emoji shortcodes (and optional ascii) and returns a string with EmojiOne images substituted in.

Usage

{{emoji-parse "Hello! :grinning:"}}

You can also import the helper and use it inside of your Javascript:

import { emojiParse } from 'ember-emoji/helpers/emoji-parse';

let str = emojiParse(["content"]);

Support

Encountered a bug or thought of a feature? Please file it! I will do my best to triage the ticket and support you as I can.

License

This project is licensed under the MIT License.

This project uses EmojiOne v3 which has its own licensing. See there information regarding licensing here.

About

Ember CLI addon providing EmojiOne component helpers

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published