Skip to content

Function: Item()

ts
function Item(props: UiItemProps): Block;

Defined in: src/renderer/blocks/index.ts:1664

Experimental

Item — list entry with optional media, title, description, and action slots. Supports dynamic hidden / disabled props (boolean or async function of UI state).

Parameters

ParameterType
propsUiItemProps

Returns

Block

Examples

ts
Item({
  title: 'Quarterly report.pdf',
  description: 'Updated 2 days ago · 4.2 MB',
});
ts
Item({
  name: 'archived-row',
  title: 'Old project',
  hidden: ({data}) => data['show-archived'] !== true,
});

Matterway Assistant SDK Documentation