A structured data display component with customizable rows, headers, dividers, compact mode, contained style, and RTL support.
Loading demo: structuredlist-real-world
npx sdaia-ui@latest add structuredlist
import { StructuredList } from '@/components/ui/StructuredList';<StructuredList />The default structured list with row and column dividers in LTR layout.
Loading demo: structuredlist-default
Use `contained={true}` to add a border around the entire list.
Loading demo: structuredlist-contained
Use `compact={true}` to reduce row height for dense data display.
Loading demo: structuredlist-compact
Set `dividerRow={false}` and `dividerColumn={false}` to remove dividers.
Loading demo: structuredlist-no-dividers
Structured List short description
Prop | Type | Default | Required |
|---|---|---|---|
columns | StructuredListColumn[] | — | required |
compact | boolean | false | optional |
contained | boolean | false | optional |
dividerRow | boolean | true | optional |
dividerColumn | boolean | true | optional |
dividerHeader | boolean | true | optional |
rtl | boolean | false | optional |
className | string | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills its container; all columns share the width equally. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Columns get narrower and long text wraps; there is no sideways scrolling. Keep to two or three columns on phones. |