Add close function into step
Add close
function into content (when is a function) on each step
so now is possible to:
const steps = [
{
selector: '.step2',
content: ({ close }) => (
<>You can <button onClick={close}>close</button> the Tour from here</>
),
},
//...
]
thanks @gdsrosa