@jstnmthw/react-fluentui-emoji

0.2.9 • Public • Published

FluentUI Emoji Icons

FluentUI Emoji

Latest Release License

Basic Usage

The quickest way to use these icons is to simply copy the source for the icon you need from Microsoft's FluentUI Emojis and inline it directly into your HTML:

<svg
  class="h-6 w-6"
  fill="none"
  viewBox="0 0 24 24"
>
  <path
    stroke-linecap="round"
    stroke-linejoin="round"
    d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
  />
</svg>

React

First, install react-fluentui-emoji-slim from npm:

npm install @jstnmthw/react-fluentui-emoji

Now each icon can be imported individually as a React component:

import { SmileyIcon } from 'react-fluentui-emoji-slim'

function MyComponent() {
  return (
    <div>
      <SmileyIcon className="h-6 w-6" />
      <p>...</p>
    </div>
  )
}

Icons use an upper camel case naming convention and are always suffixed with the word Icon.

License

This library is MIT licensed.

Package Sidebar

Install

npm i @jstnmthw/react-fluentui-emoji

Weekly Downloads

90

Version

0.2.9

License

MIT

Unpacked Size

95.8 MB

Total Files

6188

Last publish

Collaborators

  • jstnmthw