Skip to content

Releases: elrumordelaluz/reactour

Add `badgeContent` prop

04 Sep 13:58
Compare
Choose a tag to compare

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

26 May 10:40
Compare
Choose a tag to compare

Add `prevButton` and `nextButton`

27 Apr 17:45
Compare
Choose a tag to compare

Allowing to change the string, useful for languages different than english.