Quote
What a person said, in their words: a customer on the landing, a line from a support thread. Set in the voice face, with who said it.
import { Quote, QuoteSkeleton } from '@sypnia/ui/react'
Customers
We stopped losing orders on Sundays. The agent found the bug before any customer wrote to us.
Errors come with the fix already written. I review it and merge.
Code
import { Quote, QuoteSkeleton } from '@sypnia/ui/react';
// What a person said, in the voice face, with who said it.
export default function Customers() {
return (
<div className="sy-stack">
<Quote size="lg" author="Lucía Gómez" role="Owner, La Espiga">We stopped losing orders on Sundays. The agent found the bug before any customer wrote to us.</Quote>
<div className="sy-cols sy-cols--stack">
<Quote author="Bo Chen" role="Developer, Northwind">Errors come with the fix already written. I review it and merge.</Quote>
<QuoteSkeleton lines={2} />
</div>
</div>
);
} In Astro
We stopped losing orders on Sundays.
Code
---
// The Astro twin, for landing pages.
import Quote from '@sypnia/ui/astro/Quote.astro';
---
<Quote author="Lucía Gómez" role="Owner, La Espiga">We stopped losing orders on Sundays.</Quote> Skeleton
Errors come with the fix already written.
Code
import { Quote, QuoteSkeleton } from '@sypnia/ui/react';
// The quote and its skeleton: its lines and who said it.
export default function Skeleton() {
return (
<div className="sy-cols sy-cols--stack">
<Quote author="Bo Chen" role="Developer, Northwind">Errors come with the fix already written.</Quote>
<QuoteSkeleton lines={2} />
</div>
);
} When to use it
Use it when
- Testimonials, quotes from users.
Do not use it when
- Sypnia speaking: use Says.
For everyone
- It is a figure with a blockquote and a caption that names the person.
Props
| Quote | Type | Default |
|---|---|---|
author | string | |
citeThe address where it was said. | string | |
roleTheir role and company: «CTO, La Espiga». | ReactNode | |
size | "md" | "lg" | md |
srcTheir picture. | string |
| QuoteSkeleton | Type | Default |
|---|---|---|
author | boolean | true |
lines | number | 3 |
size | "md" | "lg" | md |