Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change navigation arrow svg #590

Open
yrsluv opened this issue Oct 5, 2023 · 1 comment
Open

Change navigation arrow svg #590

yrsluv opened this issue Oct 5, 2023 · 1 comment

Comments

@yrsluv
Copy link

yrsluv commented Oct 5, 2023

Are there any way to change only svg inside navigation button to custom arrow? Not found any types \ props for this

@elrumordelaluz
Copy link
Owner

Hi @yrsluv, thanks for open the Issue.

Sure you can change the svg arrow, through the component prop, doing something like:

function Arrow({ inverted }) {
  return <CustomArrow />
}

const steps = [
  /* ... */
]

export default function App() {
  return (
    <TourProvider steps={steps} components={{ Arrow }}>
      {/* ... */}
    </TourProvider>
  )
}

Here is a working example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants