AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Inpage links9/28/2023 ![]() The stripHash prop will route to the base path of your to prop, save the hash on the window, then navigate to it. If you don’t, you’ll just see a static route change directly to the hash. ![]() ![]() If you have some offset value, you’ll see some scrolling action. When passing a hashed to prop to the link component - browsers will automatically try to get you there when the route changes. Strips hash from link - forces a full scroll to target onRouteChangeĪ passthrough object which is spread into Link propsĪ function to be called when the anchor link handler is fired Import from "gatsby-plugin-anchor-links" export default ( ) => ( Check out our team ! ) // => Check out our team! export default ( ) => ( ) // => Check out our team! export default ( ) => ( ) // => Check out our team! // => Hash will be stripped, and a full page scroll will occure onRouteChange export default ( ) => // => About us AnchorLink props OptionĬlassName to be passed to gatsby-link component
0 Comments
Read More
Leave a Reply. |