Allow to pass a custom Id #1551
Closed
josemrodrigu
started this conversation in
Ideas
Replies: 1 comment
-
Implementing this in #1556 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are in the need of use our own
id
instead the one generated by the genId function.I can see that useId accepts a default
id
provided in props, but actually it's never used.I can see that the only time this hook is executed is here, at the time that
captionId
is generated. Should it be possible to pass an id received in props, isn't it?I think we can store this
id
(optional, of course) directly into DayPickerContext.Let me know about your thoughts, I'll be glad to contribute.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions