Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Data List
  3. API and Development

Data list

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
DataList wraps Radix DataList with Prepared styling. Pass items: DataListItem[] where each item declares a label and a typed value (DataListValueKind for text, datetime, badge, icon+text, link, status, etc.). Control layout with orientation (DataListOrientation), trim (DataListTrim), labelMinWidth, mono for monospace plain/text values, and optional emptyValue / emptyLabel for blank cells. Clipboard copy is supported for applicable value kinds via onCopySuccess and alwaysVisibleCopyButtons.
Props
NameTypeDefaultDescription
aria-descriptionLocalizedMessage—Extended description for assistive tech.
aria-labelLocalizedMessage—Accessible name when the visible label is insufficient.
aria-placeholderLocalizedMessage—Hint for an empty control.
childrenReactNode—Pairs: {@link DataListItem } children.
classNamestring—Classes appended after the generated classes. Put overrides in @layer chroma.overrides.
copyRevealDataListCopyRevealDataListCopyReveal.HoverWhen copy buttons are visible. Hover reveals on hover-capable devices and on focus; touch devices always show them.
densityDataListDensityDataListDensity.DefaultGap between rows and columns.
emptyContentReactNode—Visible placeholder for an empty value, passed to EmptyText as children. Defaults to its em dash.
emptyLabelLocalizedMessage—Accessible name for an empty value that sets no emptyLabel of its own.
labelWidthDataListLabelWidthDataListLabelWidth.FitWidth of the shared label column. Ignored in the vertical and inline orientations.
loadingboolean—Replaces every value with a Skeleton text line and marks the list aria-busy. Not loading.
loadingLabelLocalizedMessage—Accessible name for each placeholder. Only meaningful while loading.
monobooleanfalseRenders values in a monospace role. A value can override it.
orientationDataListOrientationDataListOrientation.HorizontalShared label column (Horizontal), label above value (Vertical), or a flowing row of pairs (Inline).
refRef<HTMLDListElement>—Ref to the dl.
separatorbooleanfalsePaints a vertical rule between items when orientation is Inline. Ignored for Horizontal and Vertical. The list owns the space around the rule.
titleLocalizedMessage—Native tooltip; accessibility hint, not visible UI title text.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Re-exported enums and value types (DataListValueKind, DateTimeFormat, BadgeValue, etc.) define each cell payload—import them from @prepared911/ui alongside DataList.
Default (horizontal)
Vertical
With links
With copyable values
Monospace values
Empty values
Status values
Icon and text values
Badge values
Date and time values
Typed vertical example
Previous
Data list / Usage
Next
Data list / Accessibility
On this page
Props
Storybook
Default (horizontal)
Vertical
With links
With copyable values
Monospace values
Empty values
Status values
Icon and text values
Badge values
Date and time values
Typed vertical example