Releases: prismicio/prismic-react
Releases · prismicio/prismic-react
v2.0.0-beta.1
chore(release): 2.0.0-beta.1
v2.0.0-alpha.6
chore(release): 2.0.0-alpha.6
v2.0.0-alpha.5
chore(release): 2.0.0-alpha.5
v2.0.0-alpha.4
chore(release): 2.0.0-alpha.4
v2.0.0-alpha.3
chore(release): 2.0.0-alpha.3
v2.0.0-alpha.2
chore(release): 2.0.0-alpha.2
v2.0.0-alpha.1
chore(release): 2.0.0-alpha.1
v2.0.0-alpha.0
chore(release): 2.0.0-alpha.0
v1.3.4
Added custom `elements` prop to RichText component
In order to use custom React elements without heavily relying on htmlSerializer, a new elements prop has been created:
It takes an object of React components, accessible by "Elements" type (one of heading1, em, strong...)
Example use:
<RichText elements={{ heading1: MyStyledComponent }} render={data.text} />