LinkProps doesn't have aria-current #6419
Unanswered
andrecasal
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't quite follow the question. I think you're asking how
specifically from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I'm building a component library.
I need to integrate React Aria's Link component's funcionality with that of other framework's Link component (like remix or next).
Those frameworks don't provide useLink() hooks to separate functionality from structure.
So, I need to replicate the React Aria's Link component and render it with that framework's .
Problem
Going through the Link.tsx code, I noticed the
isCurrent: !!props['aria-current'],
line:props
is typed asLinkProps
, butLinkProps
doesn't have anaria-current
index.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions