-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
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
docs: show deprecated prop badge #2568
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
6dbbc75
to
b2a925c
Compare
b2a925c
to
3788fb7
Compare
size-limit report 📦
|
3788fb7
to
f5426b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
The way I understand it, if a prop has the @deprecated
decorator without content, the badge won't be shown at all, is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, currently it works that way. but we can also show the badge with no tooltip if you prefer
Screen.Recording.2023-09-01.at.08.34.35.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless we set a linting rule to prevent contributors from not adding a deprecation guideline, I'd say so 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
f5426b7
to
590685d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for offering this improvement 👌
Purpose of PR
Add a clear way to mark props as deprecated in the docs.
Example: https://forma-36-git-feat-docsdeprecated.colorfuldemo.com/components/autocomplete#props-api-reference:~:text=the%20root%20element-,clearAfterSelect
Before:
After: