We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
href="#somewhere-else"
Met ...restProps is het mogelijk (en de bedoeling) om href te kunnen aanpassen van de default #top.
...restProps
href
#top
https://github.com/nl-design-system/utrecht/blob/main/packages/component-library-react/src/ScrollLink.tsx#L9-L27
Ideeën in pseudo code:
{ href = '#top' }
if (href === '#' || href === '#top') scrollToTop()
fragmentIdentifier = parseUrlAndGetFragment(href)
document.getElementById(fragmentIdentifier).scrollIntoView()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Met
...restProps
is het mogelijk (en de bedoeling) omhref
te kunnen aanpassen van de default#top
.https://github.com/nl-design-system/utrecht/blob/main/packages/component-library-react/src/ScrollLink.tsx#L9-L27
Ideeën in pseudo code:
{ href = '#top' }
zou misschien duidelijker aangeven dat het bedoeld is als aanpasbare propertyif (href === '#' || href === '#top') scrollToTop()
fragmentIdentifier = parseUrlAndGetFragment(href)
endocument.getElementById(fragmentIdentifier).scrollIntoView()
The text was updated successfully, but these errors were encountered: