use-happy
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

use-happy

A slightly overengineered React hook to render a random, accessible emoticon from a small and predictable set of icons.

Usage

import { useHappy, useSad } from "use-happy";

const MyHappyFace = () => {
  const happy = useHappy()
  const sad = useSad({
    fontSize: "48px",
  })
  return (<div>
    {happy}
    {sad}
  </div>)
}

Readme

Keywords

Package Sidebar

Install

npm i use-happy

Weekly Downloads

63

Version

2.0.3

License

ISC

Unpacked Size

10.2 kB

Total Files

29

Last publish

Collaborators

  • unscsprt