react-sparkly-text
v0.0.44
Published
<br />
Downloads
13
Maintainers
Readme
✨ react-sparkly-text
⏬ 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