react-sparkly-text
TypeScript icon, indicating that this package has built-in type declarations

0.0.44 • Public • Published

✨ react-sparkly-text


NPM

⏬ Install

npm i react-sparkly-text

🪡 Usage

import { ReactSparklyText } from "react-sparkly-text"
<p>Lorem ipsum dolor <ReactSparklyText>sparkly text</ReactSparklyText> sit amet.</p>

⚙️ Props

type TextElement = React.ReactElement<{ children: React.ReactNode }>;

type Props = {
  children: string | TextElement | Array<string | TextElement>;
  size?: number; // sparkle size in pixels. default is 30
};

©️ License

Licensed under MIT

✨ Inspired From

🙏🏼 Thanks @stefanjudis for inspiration: https://github.com/stefanjudis/sparkly-text

Package Sidebar

Install

npm i react-sparkly-text

Weekly Downloads

37

Version

0.0.44

License

none

Unpacked Size

70.3 kB

Total Files

5

Last publish

Collaborators

  • mburakerman