@jstnmthw/react-fluentui-emoji
v0.2.9
Published
Fluent Emoji SVG icons for UI react development.
Downloads
2
Maintainers
Readme
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.