Replies: 2 comments 4 replies
-
This is a good point. Most of the props in Gosling are spelled out except several ones, like But, as you pointed out, I think spelling out these props are better than |
Beta Was this translation helpful? Give feedback.
-
I really like the alias idea. As a user myself, I would want to use the abbreviated props. Quick search on the TypeScript did not show a simple way of doing this, and I would need to investigate this more. |
Beta Was this translation helpful? Give feedback.
-
I noticed that sometimes props are heavily abbreviated and sometimes they are spelled out. For instance,
xe
seems to be an abbreviation forxEnd
. In other cases the props are spelled out likestrokeWidth
(I assume there's nostrokew
).From a user perspective, is there rule that's being followed when props are abbreviated vs when they are not?
Related to this, is it technically possible to define aliases? I really like abbreviations because they support pro-users in writing the specification more efficiently but for newcomers abbreviations can be confusing. For instance,
xe
only made sense to me because I saw it in the context of links and I thinking: they probably mean the endpoint. Allowing users to either writexe
orxEnd
could make both happy. Kind of like CLI offer short and long arguments (-i
vs--install
).Beta Was this translation helpful? Give feedback.
All reactions