Skip to content
v0.2.10

DataList

A native list of structured rows with independent links and actions.

Preview
  • Foundations and reusable components
  • Documentation and live examples
  • Design instructions for your agent

Use DataList

DataList is a named export of @flood-md/react. Connect the package once, then import what you use.

First time here? Connect Flood
Example import style
data-list.tsxTSX
"use client";

import { FloodRoot, DataList, DataListItem } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <DataList>
        <DataListItem title="Design system" description="Foundations and components" metadata="Updated today" />
        <DataListItem title="Website" description="Documentation and examples" metadata="Updated yesterday" />
      </DataList>
    </FloodRoot>
  );
}

Design notes

  • This is a ul/li list, not a listbox or data grid.
  • Keep navigation in the title link and actions in their own buttons.

API reference

PropValuesDefault
density"compact" | "comfortable""comfortable"
dividersbooleantrue
Native HTML propsOmit<HTMLAttributes<HTMLUListElement>, "role">Forwarded
View TypeScript source