npm i react-sparkly-text
import { ReactSparklyText } from "react-sparkly-text"
<p>Lorem ipsum dolor <ReactSparklyText>sparkly text</ReactSparklyText> sit amet.</p>
type TextElement = React.ReactElement<{ children: React.ReactNode }>;
type Props = {
children: string | TextElement | Array<string | TextElement>;
size?: number; // sparkle size in pixels. default is 30
};
Licensed under MIT
🙏🏼 Thanks @stefanjudis for inspiration: https://github.com/stefanjudis/sparkly-text