Skip to content

Definition List

Last updated 27 Oct 2026

NbDefinitionList renders facts as label-and-value pairs: the media inspector's "Uploaded / By / Size", an environment's "Owner / Repository / Workflow", the facts on a release. It is a real <dl>, so the pairing is in the markup rather than only in the layout.

NbDefinitionList props ​

PropTypeDefaultDescription
itemsIDefinitionListItem[][]The facts. Omit and use the slot for rich values.
layout'columns' | 'stacked' | 'auto''columns'auto uses a container query, not a media query.
termWidthstring'minmax(6rem, 0.38fr)'Grid track for the label column.
dividersbooleanfalseHairline between rows.
compactbooleanfalseTighter rows.

IDefinitionListItem ​

FieldTypeDescription
termstringThe label.
valuestring | number | nullThe value. null, undefined and '' render the empty text.
emptystringShown in place of an empty value. Defaults to an en dash.

NbDefinitionListItem props ​

PropTypeDefaultDescription
termstring''The label. Use the term slot for anything richer.

NbDefinitionListItem slots ​

SlotDescription
defaultThe value.
termThe label.