Skip to content
All blocks

[09] Marketing

Testimonial

One large quote, centered between the company logo and the name, role and avatar of the person quoted.

1280px

Copy the code

One file with one component and its sample data. It needs @vaneui/ui and its stylesheet, set up as in the installation guide.

testimonial.tsx

import { Avatar, Blockquote, Col, Container, Row, Section, Text } from "@vaneui/ui";
export function Testimonial() {
return (
<Section lg>
<Container>
<Col tag="figure" xl itemsCenter className="max-w-3xl">
<Text tag="div" xl fontBold tertiary>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M4 20V4l16 16V4" />
</svg>{" "}
Northwind
</Text>
<Blockquote xl fontMedium textCenter noBorder className="text-balance">
&ldquo;We moved four tools into Acme in one week. Planning went from an hour to twenty minutes, and nobody
asks where a spec lives any more.&rdquo;
</Blockquote>
<Row tag="figcaption">
<Avatar name="Ana Diaz" />
<Col noGap>
<Text fontSemibold>Ana Diaz</Text>
<Text sm secondary>Head of Product, Northwind</Text>
</Col>
</Row>
</Col>
</Container>
</Section>
);
}

How it adapts

  • Every width: the quote stays centered and stops at 768px wide.
  • Long quotes wrap into balanced lines instead of leaving one word on the last line.
  • The quote and its caption are a figure, so the name belongs to the quote.

How these props work is in responsive page sections without breakpoint classes.

Adapt it with your coding agent

Add the VaneUI MCP server, and your agent reads the component docs and prop tables while it changes the block: the copy, the sample data or the layout.

$ claude mcp add vaneui -- npx -y @vaneui/mcp

Setup for other editors is in the AI assistants guide.