1.0.5 • Published 11 months ago

word-icons v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

word-icons

This is a react component that will scale a given string into a square of a given size, making the letters as large as possible. Try it out as a placeholder for icons.

Install

npm install word-icons

Use

import WordIcon from "word-icons";

const MyComponent = () => {
  return (
    <div>
      <WordIcon text={"Menu"} size={20} />
    </div>
  );
};

API

<WordIcon
  text={string}
  size={number}
  fontWeight={optional(string)}
  scale={optional(number)} // scales the font for fine-grained adjustment
/>
1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago