Skip to content

Add close function into step

Compare
Choose a tag to compare
@elrumordelaluz elrumordelaluz released this 19 Dec 09:29

Add close function into content (when is a function) on each stepso now is possible to:

const steps = [
  {
    selector: '.step2',
    content: ({ close }) => (
      <>You can <button onClick={close}>close</button> the Tour from here</>
    ),
  },
  //...
]

thanks @gdsrosa