# Record List (`record-list`) - SignalOS widget

> Generic list renderer with built-in loading, empty, and error states. Ships a default RecordCard row design (rank, progress ring, badges, steps, info blocks) or accepts a custom renderItem/CardComponent.

- **Version:** 0.3.1
- **Kind:** widget · **Category:** data-display
- **Install:** `npx shadcn@latest add @signalos/record-list`
- **Registry dependencies (pulled automatically):** @signalos/tokens, @signalos/utils, @signalos/skeleton, @signalos/ranked-list-card
- **npm dependencies:** lucide-react@^1.7.0
- **Files installed:** `src/components/widgets/record-list/RecordList.tsx`, `src/components/widgets/record-list/RecordList.types.ts`, `src/components/widgets/record-list/RecordList.constants.ts`, `src/components/widgets/record-list/RecordList.utils.ts`, `src/components/widgets/record-list/components/RecordCard.tsx`, `src/components/widgets/record-list/components/RecordCard.types.ts`, `src/components/widgets/record-list/components/RecordCard.constants.ts`, `src/components/widgets/record-list/components/RecordCard.utils.ts`, `src/components/widgets/record-list/components/RecordCard.skeleton.tsx`

## Access

This is a private registry: pulling source requires a `SIGNALOS_REGISTRY_TOKEN`
(GitHub fine-grained PAT with read access to the signal-widgets repo) and an
`@signalos` entry in components.json `"registries"`. Previews and this document are public.

## Usage

```tsx
import { RecordList } from "@/components/widgets/record-list/RecordList"
```

## Example

```tsx
import { AlertTriangle } from "lucide-react"

import type { RecordCardProps } from "./components/RecordCard.types"
import { RecordList } from "./RecordList"

interface IncidentRecord extends RecordCardProps {
  id: string
}

export const recordListData: IncidentRecord[] = [
  {
    id: "INC-1042",
    rank: 1,
    title: "Payment gateway timeout spike",
    eyebrow: "INC-1042",
    meta: <span>Opened 12m ago</span>,
    tone: "error",
    ribbon: "Escalated",
    progress: { value: 40, colorClass: "text-text-error" },
    infoBlocks: [
      { id: "owner", label: "Owner", value: "A. Chen", tone: "error" },
      { id: "sla", label: "SLA", value: "8m left", tone: "warning" },
    ],
  },
  {
    id: "INC-1041",
    rank: 2,
    title: "Elevated latency on checkout API",
    eyebrow: "INC-1041",
    meta: <span>Opened 34m ago</span>,
    tone: "warning",
    progress: { value: 70, colorClass: "text-text-warning" },
    infoBlocks: [{ id: "owner", label: "Owner", value: "R. Patel" }],
  },
  {
    id: "INC-1039",
    rank: 3,
    title: "Scheduled maintenance completed",
    eyebrow: "INC-1039",
    meta: <span>Closed 2h ago</span>,
    tone: "default",
    progress: { value: 100 },
  },
]

export default function Example() {
  return (
    <div className="flex flex-col gap-4">
      <RecordList
        items={recordListData}
        getItemKey={(item) => item.id}
        emptyIcon={
          <AlertTriangle className="h-8 w-8 text-muted-foreground/50" />
        }
      />
    </div>
  )
}
```

## Props

### `RecordListProps`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `items` | `readonly T[]` | yes | - | Items to render. |
| `renderItem` | `((item: T, index: number) => ReactNode) \| undefined` | no | - | Renders a single item. Takes precedence over `CardComponent` when both are provided. Required unless `T` is (structurally) a `RecordCardProps` - the default `CardComponent` only renders correctly for that shape, and the compiler cannot verify the fallback for an arbitrary `T`. |
| `CardComponent` | `ComponentType<T> \| undefined` | no | - | Component used to render each item's props (spread) when `renderItem` is not provided. Falls back to the built-in `RecordCard` when omitted - only correct when `T` matches `RecordCardProps`. For any other item shape, pass `renderItem` or a `CardComponent` typed for `T`; leaving both unset compiles but renders each item onto `RecordCard`'s props, which will not have the fields it expects. |
| `getItemKey` | `(item: T, index: number) => Key` | yes | - | Extracts a stable key for a given item. |
| `loading` | `boolean \| undefined` | no | - | Displays the loading skeleton in place of items. |
| `skeletonCount` | `number \| undefined` | no | - | Number of skeleton rows shown while loading with no items yet. |
| `renderSkeleton` | `((index: number) => ReactNode) \| undefined` | no | - | Renders a single skeleton row. |
| `error` | `ReactNode` | no | - | Error message. When set, renders the error state instead of items. |
| `emptyTitle` | `ReactNode` | no | - | Empty state title, shown when `items` is empty and not loading/error. |
| `emptyDescription` | `ReactNode` | no | - | Empty state description. |
| `emptyIcon` | `ReactNode` | no | - | Icon rendered above the empty state title. |
| `data-testid` | `string \| undefined` | no | - | Test identifier. |
| `defaultChecked` | `boolean \| undefined` | no | - |  |
| `defaultValue` | `string \| number \| readonly string[] \| undefined` | no | - |  |
| `suppressContentEditableWarning` | `boolean \| undefined` | no | - |  |
| `suppressHydrationWarning` | `boolean \| undefined` | no | - |  |
| `accessKey` | `string \| undefined` | no | - |  |
| `autoCapitalize` | `"off" \| "none" \| "on" \| "sentences" \| "words" \| "characters" \| (string & {}) \| undefined` | no | - |  |
| `autoFocus` | `boolean \| undefined` | no | - |  |
| `className` | `string \| undefined` | no | - |  |
| `contentEditable` | `Booleanish \| "inherit" \| "plaintext-only" \| undefined` | no | - |  |
| `contextMenu` | `string \| undefined` | no | - |  |
| `dir` | `string \| undefined` | no | - |  |
| `draggable` | `Booleanish \| undefined` | no | - |  |
| `enterKeyHint` | `"enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" \| undefined` | no | - |  |
| `hidden` | `boolean \| undefined` | no | - |  |
| `id` | `string \| undefined` | no | - |  |
| `lang` | `string \| undefined` | no | - |  |
| `nonce` | `string \| undefined` | no | - |  |
| `slot` | `string \| undefined` | no | - |  |
| `spellCheck` | `Booleanish \| undefined` | no | - |  |
| `style` | `CSSProperties \| undefined` | no | - |  |
| `tabIndex` | `number \| undefined` | no | - |  |
| `title` | `string \| undefined` | no | - |  |
| `translate` | `"yes" \| "no" \| undefined` | no | - |  |
| `radioGroup` | `string \| undefined` | no | - |  |
| `role` | `AriaRole \| undefined` | no | - |  |
| `about` | `string \| undefined` | no | - |  |
| `content` | `string \| undefined` | no | - |  |
| `datatype` | `string \| undefined` | no | - |  |
| `inlist` | `any` | no | - |  |
| `prefix` | `string \| undefined` | no | - |  |
| `property` | `string \| undefined` | no | - |  |
| `rel` | `string \| undefined` | no | - |  |
| `resource` | `string \| undefined` | no | - |  |
| `rev` | `string \| undefined` | no | - |  |
| `typeof` | `string \| undefined` | no | - |  |
| `vocab` | `string \| undefined` | no | - |  |
| `autoCorrect` | `string \| undefined` | no | - |  |
| `autoSave` | `string \| undefined` | no | - |  |
| `color` | `string \| undefined` | no | - |  |
| `itemProp` | `string \| undefined` | no | - |  |
| `itemScope` | `boolean \| undefined` | no | - |  |
| `itemType` | `string \| undefined` | no | - |  |
| `itemID` | `string \| undefined` | no | - |  |
| `itemRef` | `string \| undefined` | no | - |  |
| `results` | `number \| undefined` | no | - |  |
| `security` | `string \| undefined` | no | - |  |
| `unselectable` | `"off" \| "on" \| undefined` | no | - |  |
| `popover` | `"" \| "auto" \| "manual" \| "hint" \| undefined` | no | - |  |
| `popoverTargetAction` | `"toggle" \| "show" \| "hide" \| undefined` | no | - |  |
| `popoverTarget` | `string \| undefined` | no | - |  |
| `inert` | `boolean \| undefined` | no | - |  |
| `inputMode` | `"text" \| "url" \| "none" \| "search" \| "tel" \| "email" \| "numeric" \| "decimal" \| undefined` | no | - | Hints at the type of data that might be entered by the user while editing the element or its contents |
| `is` | `string \| undefined` | no | - | Specify that a standard HTML element should behave like a defined custom built-in element |
| `exportparts` | `string \| undefined` | no | - |  |
| `part` | `string \| undefined` | no | - |  |
| `aria-activedescendant` | `string \| undefined` | no | - | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
| `aria-atomic` | `Booleanish \| undefined` | no | - | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
| `aria-autocomplete` | `"none" \| "list" \| "inline" \| "both" \| undefined` | no | - | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
| `aria-braillelabel` | `string \| undefined` | no | - | Defines a string value that labels the current element, which is intended to be converted into Braille. |
| `aria-brailleroledescription` | `string \| undefined` | no | - | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. |
| `aria-busy` | `Booleanish \| undefined` | no | - |  |
| `aria-checked` | `boolean \| "true" \| "false" \| "mixed" \| undefined` | no | - | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
| `aria-colcount` | `number \| undefined` | no | - | Defines the total number of columns in a table, grid, or treegrid. |
| `aria-colindex` | `number \| undefined` | no | - | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
| `aria-colindextext` | `string \| undefined` | no | - | Defines a human readable text alternative of aria-colindex. |
| `aria-colspan` | `number \| undefined` | no | - | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
| `aria-controls` | `string \| undefined` | no | - | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| `aria-current` | `boolean \| "page" \| "step" \| "true" \| "false" \| "location" \| "date" \| "time" \| undefined` | no | - | Indicates the element that represents the current item within a container or set of related elements. |
| `aria-describedby` | `string \| undefined` | no | - | Identifies the element (or elements) that describes the object. |
| `aria-description` | `string \| undefined` | no | - | Defines a string value that describes or annotates the current element. |
| `aria-details` | `string \| undefined` | no | - | Identifies the element that provides a detailed, extended description for the object. |
| `aria-disabled` | `Booleanish \| undefined` | no | - | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
| `aria-dropeffect` | `"none" \| "link" \| "copy" \| "execute" \| "move" \| "popup" \| undefined` | no | - | Indicates what functions can be performed when a dragged object is released on the drop target. |
| `aria-errormessage` | `string \| undefined` | no | - | Identifies the element that provides an error message for the object. |
| `aria-expanded` | `Booleanish \| undefined` | no | - | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| `aria-flowto` | `string \| undefined` | no | - | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
| `aria-grabbed` | `Booleanish \| undefined` | no | - | Indicates an element's "grabbed" state in a drag-and-drop operation. |
| `aria-haspopup` | `boolean \| "true" \| "false" \| "dialog" \| "grid" \| "listbox" \| "menu" \| "tree" \| undefined` | no | - | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| `aria-hidden` | `Booleanish \| undefined` | no | - | Indicates whether the element is exposed to an accessibility API. |
| `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling" \| undefined` | no | - | Indicates the entered value does not conform to the format expected by the application. |
| `aria-keyshortcuts` | `string \| undefined` | no | - | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
| `aria-label` | `string \| undefined` | no | - | Defines a string value that labels the current element. |
| `aria-labelledby` | `string \| undefined` | no | - | Identifies the element (or elements) that labels the current element. |
| `aria-level` | `number \| undefined` | no | - | Defines the hierarchical level of an element within a structure. |
| `aria-live` | `"off" \| "assertive" \| "polite" \| undefined` | no | - | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
| `aria-modal` | `Booleanish \| undefined` | no | - | Indicates whether an element is modal when displayed. |
| `aria-multiline` | `Booleanish \| undefined` | no | - | Indicates whether a text box accepts multiple lines of input or only a single line. |
| `aria-multiselectable` | `Booleanish \| undefined` | no | - | Indicates that the user may select more than one item from the current selectable descendants. |
| `aria-orientation` | `"horizontal" \| "vertical" \| undefined` | no | - | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
| `aria-owns` | `string \| undefined` | no | - | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
| `aria-placeholder` | `string \| undefined` | no | - | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
| `aria-posinset` | `number \| undefined` | no | - | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| `aria-pressed` | `boolean \| "true" \| "false" \| "mixed" \| undefined` | no | - | Indicates the current "pressed" state of toggle buttons. |
| `aria-readonly` | `Booleanish \| undefined` | no | - | Indicates that the element is not editable, but is otherwise operable. |
| `aria-relevant` | `"text" \| "additions" \| "additions removals" \| "additions text" \| "all" \| "removals" \| "removals additions" \| "removals text" \| "text additions" \| "text removals" \| undefined` | no | - | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
| `aria-required` | `Booleanish \| undefined` | no | - | Indicates that user input is required on the element before a form may be submitted. |
| `aria-roledescription` | `string \| undefined` | no | - | Defines a human-readable, author-localized description for the role of an element. |
| `aria-rowcount` | `number \| undefined` | no | - | Defines the total number of rows in a table, grid, or treegrid. |
| `aria-rowindex` | `number \| undefined` | no | - | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
| `aria-rowindextext` | `string \| undefined` | no | - | Defines a human readable text alternative of aria-rowindex. |
| `aria-rowspan` | `number \| undefined` | no | - | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
| `aria-selected` | `Booleanish \| undefined` | no | - | Indicates the current "selected" state of various widgets. |
| `aria-setsize` | `number \| undefined` | no | - | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| `aria-sort` | `"none" \| "ascending" \| "descending" \| "other" \| undefined` | no | - | Indicates if items in a table or grid are sorted in ascending or descending order. |
| `aria-valuemax` | `number \| undefined` | no | - | Defines the maximum allowed value for a range widget. |
| `aria-valuemin` | `number \| undefined` | no | - | Defines the minimum allowed value for a range widget. |
| `aria-valuenow` | `number \| undefined` | no | - | Defines the current value for a range widget. |
| `aria-valuetext` | `string \| undefined` | no | - | Defines the human readable text alternative of aria-valuenow for a range widget. |
| `children` | `ReactNode` | no | - |  |
| `dangerouslySetInnerHTML` | `{ __html: string \| TrustedHTML; } \| undefined` | no | - |  |
| `onCopy` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCopyCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCut` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCutCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPaste` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPasteCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionEnd` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionEndCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionStart` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionStartCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionUpdate` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionUpdateCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onFocus` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onFocusCapture` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBlur` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBlurCapture` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onChange` | `ChangeEventHandler<HTMLDivElement, Element> \| undefined` | no | - |  |
| `onChangeCapture` | `ChangeEventHandler<HTMLDivElement, Element> \| undefined` | no | - |  |
| `onBeforeInput` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBeforeInputCapture` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInput` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInputCapture` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onReset` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onResetCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSubmit` | `SubmitEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSubmitCapture` | `SubmitEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInvalid` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInvalidCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoad` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onError` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onErrorCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyDown` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyDownCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyPress` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyPressCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyUp` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyUpCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAbort` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAbortCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlay` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayThrough` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayThroughCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDurationChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDurationChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEmptied` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEmptiedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEncrypted` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEncryptedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEnded` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEndedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedData` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedDataCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedMetadata` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedMetadataCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadStart` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadStartCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPause` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPauseCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlay` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlayCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlaying` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlayingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onProgress` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onProgressCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onRateChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onRateChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeeked` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeekedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeeking` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeekingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onStalled` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onStalledCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSuspend` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSuspendCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTimeUpdate` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTimeUpdateCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onVolumeChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onVolumeChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWaiting` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWaitingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAuxClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onContextMenu` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDoubleClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDrag` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnd` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEndCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnter` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnterCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragExit` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragExitCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragLeave` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragLeaveCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragOver` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragOverCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragStart` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragStartCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDrop` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDropCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseDown` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseEnter` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseLeave` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseMove` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOut` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOver` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseUp` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSelect` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSelectCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchCancel` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchEnd` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchMove` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchStart` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerDown` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerMove` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerUp` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerCancel` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerEnter` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerLeave` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOver` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOut` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScroll` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollCapture` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollEnd` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollEndCapture` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWheel` | `WheelEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWheelCapture` | `WheelEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onToggle` | `ToggleEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBeforeToggle` | `ToggleEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionCancel` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionCancelCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionEnd` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionEndCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionRun` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionRunCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionStart` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionStartCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |

## Changelog

# record-list

## 0.3.1

- Documented (in JSDoc on `renderItem`/`CardComponent`, and a code comment on
  the default) that omitting both is only type-safe when `T` is structurally
  a `RecordCardProps`; no behavior change. A stricter compiler-enforced
  version of this (making `renderItem`/`CardComponent` required whenever `T`
  doesn't extend `RecordCardProps`) was evaluated but reverted: it breaks
  `attention-routing-01`, whose own `TData` is unconstrained and forwards an
  optional `renderItem` straight through. Fixing that fully needs a
  coordinated change to that block too.

## 0.3.0

- **Breaking:** `RecordCard` now composes `@signalos/ranked-list-card` instead
  of re-implementing its three-zone layout, removing ~150 duplicated lines
  and a duplicated SVG progress ring (now reuses `CircularProgress` via
  `RankedListCard`). Two consequences for anyone depending on internals
  beyond the documented prop API:
  - `RecordCard` is a plain function component again (no longer
    `React.forwardRef`); a `ref` passed to it is no longer forwarded to the
    root element.
  - `RecordCardProps` no longer extends `React.HTMLAttributes<HTMLDivElement>`,
    so arbitrary DOM attributes (e.g. `id`, `aria-*`, `style`) are no longer
    spread onto the root - only the documented props are accepted.
  - Removed the internal `getRecordCardBorderClass` export from
    `RecordCard.utils.ts` (replaced by `toneToUrgency`, mapping `tone` onto
    `RankedListCard`'s `urgency` accent, which produces the same border
    classes for every documented `tone`/`isSelected` combination).
  - Visual edge case: when neither `rank` nor `progress` is provided, the
    left rank/progress gutter column is no longer reserved (previously an
    empty 48px-wide column was always rendered); matches the layout already
    used by `RankedListCard`/`SignalFeedCard`. No documented usage renders
    without at least one of `rank`/`progress`.
  - All documented prop combinations (`rank`+`progress`, `badges`+`eyebrow`,
    `steps`, `infoBlocks`, `footer`, `ribbon`, `isSelected`, `tone`,
    `onClick`, `className`, `data-testid`) render identically.
- Added `@signalos/ranked-list-card` to `registryDependencies`.

## 0.2.1

- Use semantic status tokens (text-text-error, bg-bg-warning, border-border-*, bg-status-*) instead of raw palette scales so client theme overrides restyle status colors.


## 0.2.0

- Fixed `files` manifest to include the nested `components/RecordCard.*` files (card, skeleton, types, constants, utils) that ship with the widget.
- Corrected `registryDependencies` to `@signalos/skeleton` (used by the loading skeleton) and dropped unused `@signalos/button`/`@signalos/tooltip`.
- Updated title/description to reflect the actual component (list renderer with card/skeleton/empty/error states).

## 0.1.1

- Minor updates.

## 0.1.0

- Initial release.
