Ledger
Datos en una lista con líneas, no en tarjetas: qué incluye, cuánto cuesta, dónde corre.
import { Ledger } from '@sypnia/ui/react'
En esta página
Un plan
- Price
- FreeOpen source, MIT
- Projects
- As many as you want
- Data kept
- 30 daysLonger on Cloud
- Where it runs
- Your servers
Código
import { Ledger } from '@sypnia/ui/react';
export default function Plan() {
return (
<Ledger label="What is included" items={[
{ label: 'Price', value: 'Free', note: 'Open source, MIT' },
{ label: 'Projects', value: 'As many as you want' },
{ label: 'Data kept', value: '30 days', note: 'Longer on Cloud' },
{ label: 'Where it runs', value: 'Your servers' },
]} />
);
} Cuándo usarlo
Úsalo cuando
- Precios, los datos de un plan o de un producto.
No lo uses cuando
- Datos de una app: eso es KeyValue.
Para todos
- Una lista de descripciones: cada dato con su nombre.
Props
| Ledger | Tipo | Por defecto |
|---|---|---|
itemsobligatorio | { label: string; value: ReactNode; note?: ReactNode; }[] | |
columns | 1 | 2 | 3 | 2 |
label | string |