qwik-emoji
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

qwik-emoji

npm npm bundle size (minified) npm

⚡️ An accessible Emoji component for Qwik applications

Why?

Emojis can add a light playfulness to your project but require some specific formatting in order to ensure they are accessible for all users. qwik-emoji's reusable Emoji component helps you do that quickly and painlessly.

Installation

Add qwik-emoji to your project:

npm install qwik-emoji
# or
yarn add qwik-emoji

Use

Import Emoji, a default export, from qwik-emoji and add it to your code:

import Emoji from "qwik-emoji";

export default component$(() => {
  return (
    <div>
      <Emoji symbol="👋" label="Hello" />
      Qwik
      <Emoji symbol="⚡️" />
    </div>
  );
});

Emoji component

The Emoji component consumes two props: symbol and label. Every other prop is spread to the top-level <span> element.

License

MIT

Package Sidebar

Install

npm i qwik-emoji

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

6.05 kB

Total Files

10

Last publish

Collaborators

  • seanmcp