Componentsv2.189.0
Iconsv1.19.0
MCPv0.8.61
Tokensv0.34.3

DescriptionList

Github
Storybook

Organize and explain a group of terms and their descriptions.

Importing

A description list consists of three components:

  • DescriptionList - wraps the description list (a dl tag)
  • DescriptionListTerm - the term (a dt tag)
  • DescriptionListDetails - the details (a dd tag)

The components can be imported via:

import { 
	DescriptionList, 
	DescriptionListTerm, 
	DescriptionListDetails 
} from '@customerio/pluma-components/react';

Usage

Use the DescriptionList component as the container, and place DescriptionListTerm components and their DescriptionListDetails components inside:

Loading editor

Layout

The list can also be rendered in a horizontal layout by setting the layout prop to "horizontal":

Loading editor

Additionally, the terms can be right aligned (only in the horizontal layout), with the termAlignment prop:

Loading editor

API

On this page