Components
Description List
Term and detail pairs for metadata, specs and settings summaries.
Installation
$ npx veil-ui@latest add description-listUsage
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
| Prop | Type | Default | Description |
|---|---|---|---|
| layout | "stacked" | "inline" | "stacked" | Stack pairs or place terms beside their details. |
| Prop | Type | Default | Description |
|---|---|---|---|
| DescriptionTerm | ComponentProps<'dt'> | — | Medium-weight term text. |
| DescriptionDetails | ComponentProps<'dd'> | — | Muted detail text aligned with the term. |
Accessibility
- Uses the native
dl,dtandddelements 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>