apps/www/content/docs/components/blockquote.mdx
import { Blockquote } from "@chakra-ui/react"
<Blockquote.Root>
<Blockquote.Content cite="https://" />
<Blockquote.Caption>
<cite>Uzumaki Naruto</cite>
</Blockquote.Caption>
</Blockquote.Root>
:::info
If you prefer a closed component composition, check out the snippet below.
:::
To provide reference about the blockquote:
cite prop to Blockquote.Content pointing to the quote urlBlockquote.Caption component to display name of quote authorUse the colorPalette prop to change the color of the blockquote.
Use the variant prop to change the visual style of the blockquote.
Here's an example of how to compose the Float and BlockquoteIcon to show an
icon on the blockquote. The default icon is a double quote.
Alternatively, you can render a custom icon.
<ExampleTabs name="blockquote-with-custom-icon" />Use the justify prop to change the alignment of the blockquote.
Here's an example of how to compose the Blockquote, Avatar and Float
components to create a stunning testimonial component.
Here's an example of how to create a closed component composition
<ExampleCode name="blockquote-closed-component" />If you want to automatically add the closed component to your project, run the command:
npx @chakra-ui/cli snippet add blockquote
Explore the Blockquote component parts interactively. Click on parts in the
sidebar to highlight them in the preview.