Skip to content

mburakerman/react-sparkly-text

Repository files navigation

✨ 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