0.2.9 • Published 10 months ago

@jstnmthw/react-fluentui-emoji v0.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

FluentUI Emoji Icons

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.

0.2.9

10 months ago

0.2.8

10 months ago

0.2.7

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.3

11 months ago