This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
About design-system components. #963
alantoa
started this conversation in
Show and tell
Replies: 3 comments 2 replies
-
I personally don't think that it looks cleaner. It feels more natural to use children (like you would with bare HTML) |
Beta Was this translation helpful? Give feedback.
1 reply
-
They are both the same for me as readiblity. I think this should depend on other features of the Text component (or Button). Maybe we should consider these also for future. Here is an example: When we want to enable the multi-lang feature, we will probably go in two ways;
<Text translateId="components.info.description" />
<Text>
{I18n.t("components.info.description")}
</Text> If we don't handle these or some other features, they are almost the same for me. |
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
-
design-system components add some extra props.
The current components are all using
children
props, would result in having to use double<blockquote>
.Maybe we can add a props to use single tag.
Just like,
Before:
After :
I think it can make the code cleaner, what do you think?
Beta Was this translation helpful? Give feedback.
All reactions