Replies: 4 comments
-
I have no mega strong feelings either way. Using the default slot for the main label text feels slightly more intuitive (mainly as that just replicates how |
Beta Was this translation helpful? Give feedback.
-
Thanks for the context, very clear to understand :D |
Beta Was this translation helpful? Give feedback.
-
Thanks for raising this @raoufswe! If we go with the slot approach, I expect it may be difficult to style the content in a consistent way. Do you have any thoughts about how we can style the labels the way they are in the image you provided? I am open to slots as long as we can still promote consistency and save effort for the consumers. |
Beta Was this translation helpful? Give feedback.
-
thank you all for your input |
Beta Was this translation helpful? Give feedback.
-
Problem Outline
As part of my pre-refinement task for the
pie-form label
component, I would like to seek the team's opinion on whether we should make use of slots or props to pass different labels to the component.The component, based on the design specs, should accept the following as string values:
and looks like this:
Proposed solutions:
1- Pass labels as slots:
2- Pass labels as props:
Considerations:
Beta Was this translation helpful? Give feedback.
All reactions