Ir al contenido

DescriptionList

Los datos de una cosa, por nombre, en columnas: la configuración de una base de datos, los detalles de una factura. Términos encima de sus valores; una columna en celulares.

import { DescriptionList, DescriptionListSkeleton } from '@sypnia/ui/react'

En esta página
  1. Una base de datos
  2. Valores en camino
  3. En Astro
  4. Skeleton
  5. Cuándo usarlo
  6. Para todos
  7. Props

Una base de datos

Database

Region
São Paulo (sa-east-1)Closest to most of your visitors
State
Running
Host
db.shop.sypnia.app
Size
2.1 GB of 8 GBGrows by itself up to the plan limit
Backups
Every night at 03:00, kept 14 days
Created
March 4, 2026
Código
import { Badge, CopyableText, DescriptionList, Panel } from '@sypnia/ui/react';

// The facts of one database: terms above their values, two columns, one on phones.
export default function Database() {
  return (
    <Panel title="Database">
      <DescriptionList items={[
        { term: 'Region', description: 'São Paulo (sa-east-1)', hint: 'Closest to most of your visitors' },
        { term: 'State', description: <Badge tone="ok" dot>Running</Badge> },
        { term: 'Host', description: <CopyableText value="db.shop.sypnia.app" label="host" /> },
        { term: 'Size', description: '2.1 GB of 8 GB', hint: 'Grows by itself up to the plan limit' },
        { term: 'Backups', description: 'Every night at 03:00, kept 14 days' },
        { term: 'Created', description: 'March 4, 2026' },
      ]} />
    </Panel>
  );
}

Valores en camino

Plan
Next invoice
Seats
Código
import { DescriptionList, DescriptionListSkeleton } from '@sypnia/ui/react';

// With loading the terms stay and only the values wait. Before the terms are known, the skeleton.
export default function Loading() {
  return (
    <div className="sy-stack">
      <DescriptionList loading columns={3} items={[{ term: 'Plan', description: '' }, { term: 'Next invoice', description: '' }, { term: 'Seats', description: '' }]} />
      <DescriptionListSkeleton items={3} columns={3} />
    </div>
  );
}

En Astro

License
MIT
Runs on
Linux, macOS and Windows
Needs
Node 20 or newerBun and Deno work too
Código
---
// The Astro twin, for static pages.
import DescriptionList from '@sypnia/ui/astro/DescriptionList.astro';
---
<DescriptionList columns={3} items={[
  { term: 'License', description: 'MIT' },
  { term: 'Runs on', description: 'Linux, macOS and Windows' },
  { term: 'Needs', description: 'Node 20 or newer', hint: 'Bun and Deno work too' },
]} />

Skeleton

Region
São Paulo
Size
2.1 GB
Código
import { DescriptionList, DescriptionListSkeleton } from '@sypnia/ui/react';

// The facts and their skeleton.
export default function Skeleton() {
  return (
    <div className="sy-cols sy-cols--stack">
      <DescriptionList items={[{ term: 'Region', description: 'São Paulo' }, { term: 'Size', description: '2.1 GB' }]} />
      <DescriptionListSkeleton items={2} />
    </div>
  );
}

Cuándo usarlo

Úsalo cuando

  • Páginas de detalle con seis a doce datos.
  • hint para de dónde sale un valor o cuándo cambia.

No lo uses cuando

  • Nombre y valor en una línea: usa KeyValue.

Para todos

  • Es una lista de descripciones: cada término se lee con su valor.

Props

DescriptionListTipoPor defecto
itemsobligatorio Description[]
columns 1 | 2 | 3 2
loading boolean
DescriptionListSkeletonTipoPor defecto
columns 1 | 2 | 3 2
items number 4
  1. Una base de datos
  2. Valores en camino
  3. En Astro
  4. Skeleton
  5. Cuándo usarlo
  6. Para todos
  7. Props

    Busca páginas, secciones y términos