BlockQuote
A simple wrapper that returns React.Children
in a blockquote
element.
Quotation marks do not need to be used in the given quote as these get applied automatically based on the number of child elements and the lang
attribute of the documents html
element.
Examples
By default, standard open and close quotation marks (“ ”
) are applied.
Simple BlockQuote with plain text:
Practice makes perfect
Complex BlockQuote with block and inline elements:
What doesn't kill you makes you stronger
When life gives you lemons, make lemonade
I think, therefore I am
Code
<Stack gap="16px"><Text>Simple BlockQuote with plain text:</Text><BlockQuote>Practice makes perfect</BlockQuote><Text>Complex BlockQuote with block and inline elements:</Text><BlockQuote><p>What doesn't kill you makes you{' '}<b>stronger</b></p><p>When life gives you lemons, make lemonade</p><p>I think, therefore{' '}<u>I am</u></p></BlockQuote></Stack>
When the lang
attribute of the page is fr
, guillemet quotation marks (« »
) are applied.
Mieux vaut prévenir que guérir
Code
<div lang="fr"><BlockQuote>Mieux vaut prévenir que guérir</BlockQuote></div>