initials-placeholder-react

1.1.4 • Public • Published

INITIALS PLACEHOLDER

A react package that uses parsed initials as placeholders. Can be used as a substitute for absent user profile photo

npm i initials-placeholder-react
# OR
yarn add initials-placeholder-react

Example

import React from "react";
import InitialsPlaceholder from "initials-placeholder-react";

function App() {
  return (
    <>
      <InitialsPlaceholder value="Ize Ozorku" />
    </>
  );
}

export default App;

Props

  • value: Holds the value name e.g Adavize Ozorku
  • bgColor: Background color e.g #0366D6 OR blue
  • textColor: Text color
  • size: Size of placeholder
  • fontSize: Size of font

How to contribute ✨

  1. Fork it!
  2. Create your feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Some commit message'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request 😉😉

follow me on twitter!

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i initials-placeholder-react

    Weekly Downloads

    13

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    9.21 kB

    Total Files

    3

    Last publish

    Collaborators

    • ozorku