Closed SamrithaS closed 4 years ago
as per chakra, Text is a dependency of box and rendered as p tag. Read this
@prasanna1211 okay read it, Is there any change that I should impose in this RFC?
No. Box component becomes a dependency for this. So lets wrap Box, then Text then Button.
Is Button built on top of Box and Text? Why can't this be a separate one? In chakra it is built on top of PseudoBox.
Primarily to commonize props. So any component that uses box will have same prop definitions throughout. They have Box as lower level primitive. Box has 'as' props which gives flexiblity to render it as anything.
But for us we are going to use their Text component. We just need to wait till box is completed. After which we can use their text (understand their code first) to create our own.
Okay, this means we should wait until Box component is built for use.
Yes.
Closing this as it is merged
Introduction Text is used to render text and paragraphs within an interface. Text is derived from
Box
component as a paragraph<p>
and it can take all styles thatBox
doesProps