Flutter docs
Default skin

Descriptions

Display multiple read-only fields in a group.

When to use

Commonly displayed on the details page.

Examples

Basic

Simplest Usage.

border

Descriptions with border and background color.

Custom size

Custom sizes to fit in a variety of containers.

responsive

Responsive configuration enables perfect presentation on small screen devices.

Vertical

Simplest Usage.

Vertical border

Descriptions with border and background color.

Custom semantic dom styling

You can customize the semantic dom style of Descriptions by passing objects/functions through classNames and styles.

row

Display of the entire line.

API

Descriptions and Descriptions.Item are exported from @ceebee/ui/client.

Descriptions

PropertyDescriptionTypeDefaultVersion
borderedWhether to display the borderbooleanfalse—
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-—
colonChange default props colon value of Descriptions.Item. Indicates whether the colon after the label is displayedbooleantrue—
columnThe number of DescriptionItems in a row, could be an object (like { xs: 8, sm: 16, md: 24}, but must have bordered={true}) or a numbernumber | Record<Breakpoint, number>3—
contentStyleCustomize content style, Please use styles.content insteadCSSProperties-4.10.0
extraThe action area of the description list, placed at the top-rightReactNode-4.5.0
itemsDescribe the contents of the list itemDescriptionsItem[]-5.8.0
labelStyleCustomize label style, Please use styles.label insteadCSSProperties-4.10.0
layoutDefine description layouthorizontal | verticalhorizontal—
sizeSet the size of the list. Can be set to medium,small, or not filledlarge | medium | smalllarge—
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-—
titleThe title of the description list, placed at the topReactNode-—

DescriptionItem

PropertyDescriptionTypeDefaultVersion
contentStyleCustomize content style, Please use styles.content insteadCSSProperties-4.9.0
labelThe description of the contentReactNode-—
labelStyleCustomize label style, Please use styles.label insteadCSSProperties-4.9.0
spanThe number of columns included(filled Fill the remaining part of the current row)number | filled | Screens1screens: 5.9.0, filled: 5.22.0