Releases: elrumordelaluz/reactour
Releases · elrumordelaluz/reactour
Add `badgeContent` prop
Allows to customize the content with two params current
step and total
step.
i.e
<Tour
onRequestClose={closeTour}
steps={[…]}
isOpen={true}
badgeContent={(cur, tot) => `${cur} of ${tot}`}
/>
or something more complex like
<Tour
onRequestClose={closeTour}
steps={[…]}
isOpen={true}
badgeContent={(cur, tot) => cur === 1 ? 'welcome!' : `${cur}/${tot}`}
/>
Thanks to @jovstern for the idea
Update to styled-components 2.0.0
v1.2.1 1.2.1
Add `prevButton` and `nextButton`
Allowing to change the string
, useful for languages different than english.