reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11k stars 7.51k forks source link

[Suggestion]: Reference: component prop list shoud be more readable #7071

Open alinkedd opened 2 months ago

alinkedd commented 2 months ago

Summary

In my view, the current presentation of component props is somewhat unreadable and could benefit from refinement. This issue is particularly visible in long lists like this one: input props.

My propose is to improve indentations and alignment and to enhance visual clarity using existing tools:

P.S. I know, this is a bit influenced by the MDN Web Docs, but those are not poor UX decisions. Nonetheless, I welcome an active discussion on these suggestions.

Page

No response

Details

What it looks like now: Screenshot from 2024-07-20 13-29-40

What it looks like with my suggestions applied: Screenshot from 2024-07-20 13-17-50