Skip to content
v0.2.10

DataListItem

A structured list row with media, supporting text, metadata and actions.

Preview
  • Foundations and reusable components

Use DataListItem

DataListItem 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-item.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" />
      </DataList>
    </FloodRoot>
  );
}

Design notes

  • Render inside DataList or another native list.
  • The row is not clickable; supply a Link as title when navigation is needed.

API reference

PropValuesDefault
titleReactNodeRequired
descriptionReactNode—
mediaReactNode—
metadataReactNode—
actionsReactNode—
Native HTML propsOmit<HTMLAttributes<HTMLLIElement>, "title" | "children">Forwarded
View TypeScript source