0.0.1-2 • Published 3 years ago

prismic-better-richtext v0.0.1-2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Prismic Better Richtext

Motivation

The functionality of RichText component is not enough for my requirements. I have created that package because I want to have possibilities such as determining tag of rendered element, extending classnames and more!

Usage

<BetterRichText 
    tag='label'
    className'text-lg leading-none'
    text={data.email_label> />

How it works?

Its using output of RichText.render function. Elements prepared by prismic-reactjs are cloned, and modified.

Author

Mariusz Rakus (kolezka) - https://raqz.pl/

License

MIT