BlockQuote is a component that visually distinguishes quoted content, making it perfect for testimonials, citations, and emphasizing important passages.
"Behind every great man is a woman rolling her eyes." — Jim Carrey
import BlockQuote from "@radui/ui/BlockQuote" const BlockQuoteExample = () => ( <div className="text-gray-950"> <BlockQuote color="green"> "Behind every great man is a woman rolling her eyes." — Jim Carrey </BlockQuote> </div> ) export default BlockQuoteExample;
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
import BlockQuote from '@radui/ui/BlockQuote'; const BlockQuoteSizes = () => { const sizes = ['small', 'medium', 'large', 'x-large']; return <div className='flex flex-col gap-4'> {sizes.map((size, index) => { return <BlockQuote key={index} size={size} > <span className='text-gray-950'>"Behind every great man is a woman rolling her eyes." — Jim Carrey</span> </BlockQuote> })} </div> } export default BlockQuoteSizes;
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
"Behind every great man is a woman rolling her eyes." — Jim Carrey
import BlockQuote from '@radui/ui/BlockQuote'; const BlockQuoteColor = () => { const sizes = ['small', 'medium', 'large', 'x-large']; return <div className='flex flex-col gap-4'> {sizes.map((size, index) => { return <BlockQuote key={index} size={size} color='pink'> <span className='text-gray-950'>"Behind every great man is a woman rolling her eyes." — Jim Carrey</span> </BlockQuote> })} </div> } export default BlockQuoteColor;
A component used to highlight and distinguish quoted content from the surrounding text, often used for testimonials, citations, or emphasis.
Prop | Type | Default |
---|---|---|
children | ReactNode | -- |
className | string | '' |
customRootClass | string | '' |
variant | string | '' |
size | string | '' |
color | string | '' |