Skip to content

DescriptionList

The facts of one thing, by name, in columns: the settings of a database, the details of an invoice. Terms above their values; one column on phones.

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

On this page
  1. A database
  2. Values on their way
  3. In Astro
  4. Skeleton
  5. When to use it
  6. For everyone
  7. Props

A database

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
Code
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>
  );
}

Values on their way

Plan
Next invoice
Seats
Code
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>
  );
}

In Astro

License
MIT
Runs on
Linux, macOS and Windows
Needs
Node 20 or newerBun and Deno work too
Code
---
// 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
Code
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>
  );
}

When to use it

Use it when

  • Detail pages with six to twelve facts.
  • hint for where a value comes from or when it changes.

Do not use it when

  • Name and value on one line: use KeyValue.

For everyone

  • It is a description list: each term is read with its value.

Props

DescriptionListTypeDefault
itemsrequired Description[]
columns 1 | 2 | 3 2
loading boolean
DescriptionListSkeletonTypeDefault
columns 1 | 2 | 3 2
items number 4
  1. A database
  2. Values on their way
  3. In Astro
  4. Skeleton
  5. When to use it
  6. For everyone
  7. Props

    Search pages, sections and terms