#Disable Link from "@remix-run/react"
1 messages · Page 1 of 1 (latest)
It is the same as a <a /> so what you would do would be:
- Change the tag to a <p /> or something unclickable.
- Add pointer-events: none. https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events
For accessibility you could do:
- add
aria-disabled: true - if you go with the change the element approach make sure to add the
role="link"so screen readers know it is a disabled link.
thank you 🙏