Quote
Lo que dijo una persona, con sus palabras: un cliente en la landing, una línea de una conversación de soporte. En la letra de la voz, con quién lo dijo.
import { Quote, QuoteSkeleton } from '@sypnia/ui/react'
En esta página
Clientes
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.
Código
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>
);
} En Astro
We stopped losing orders on Sundays.
Código
---
// 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.
Código
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>
);
} Cuándo usarlo
Úsalo cuando
- Testimonios, citas de usuarios.
No lo uses cuando
- Sypnia hablando: usa Says.
Para todos
- Es una figura con un blockquote y un pie que nombra a la persona.
Props
| Quote | Tipo | Por defecto |
|---|---|---|
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 | Tipo | Por defecto |
|---|---|---|
author | boolean | true |
lines | number | 3 |
size | "md" | "lg" | md |