Veil UI
Components

Description List

Term and detail pairs for metadata, specs and settings summaries.

Installation

$ npx veil-ui@latest add description-list

Usage

import {
  DescriptionList,
  DescriptionTerm,
  DescriptionDetails,
} from "@/components/ui/description-list";

<DescriptionList>
  <DescriptionTerm>License</DescriptionTerm>
  <DescriptionDetails>MIT</DescriptionDetails>
</DescriptionList>;

Examples

Basic

License
MIT, forever.
Runtime wrappers
None — components are copied as source.

Inline

Components
42 core primitives
Blocks
75 page sections planned
Styling
Tailwind CSS v4 tokens

API reference

PropTypeDefaultDescription
layout"stacked" | "inline""stacked"Stack pairs or place terms beside their details.
PropTypeDefaultDescription
DescriptionTermComponentProps<'dt'>—Medium-weight term text.
DescriptionDetailsComponentProps<'dd'>—Muted detail text aligned with the term.

Accessibility

  • Uses the native dl, dt and dd elements so term-detail relationships are programmatic.
  • The inline layout collapses to a single column on narrow screens instead of squeezing long values.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add description-list --framework vue or switch the framework in components.json.

<script setup lang="ts">
import { cn } from "@/lib/utils";

const props = defineProps<{ class?: string }>();
</script>

<template>
  <dd
    data-slot="description-details"
    :class="cn('text-sm text-muted-foreground', props.class)"
  >
    <slot />
  </dd>
</template>

On this page