Skip to content

Function: Attachment()

ts
function Attachment(props: Readonly<{
  name: string;
  className?: string;
  href?: string;
  kind?: AttachmentKind;
  size?: number;
  thumbnail?: string;
}> & RefAttributes<HTMLDivElement>): Block;

Defined in: packages/sdk/src/renderer/blocks/index.ts:2510

Experimental

Attachment — single file chip inside an Attachments wrapper.

Parameters

ParameterType
propsReadonly<{ name: string; className?: string; href?: string; kind?: AttachmentKind; size?: number; thumbnail?: string; }> & RefAttributes<HTMLDivElement>

Returns

Block

Matterway Assistant SDK Documentation