
It should be a paragraph, ain't it?
You can set the HTML element with the is prop where appropriate, e.g. <Text is='p' />
yes I know we can set it with is prop.
But isn't it better to set Text as p element by default? Like what we have on v1?
@jxnblk What are the motivations behind making blocks of text a div by default? I think that using p for text is more frequent. Using <Text is="div" /> would still be possible.
Not all text on a page is a paragraph, so overusing the <p> tag can also not be great. The Text component can also be used as a wrapping component around other semantic elements, where you could have something like
<Text fontSize={3}>
<p>...</p>
<p>...</p>
<ul>...</ul>
</Text>
Most helpful comment
yes I know we can set it with
isprop.But isn't it better to set
Textaspelement by default? Like what we have on v1?