Elements

Components

AI Attachments

One file riding the prompt: its glyph by extension, its name and human size, and a quiet way to take it back off. Uploading reads as a dashed ghost, error as danger ink.

#Basic usage

ai-attachments/basic Vue React
colophon.png47.1 KBnotes.md1.0 KBwireframe.figdenied.exe64.0 KBa-very-long-document-name-that-keeps-going-and-going.pdf2.0 MB

Click a chip's × to remove it.

#Props

#AiAttachment

One file riding the prompt: its glyph by extension, its name and human size, and a quiet way to take it back off. Uploading reads as a dashed ghost, error as danger ink.

PropTypeDefaultDescription
nameStringThe file's name — it picks the glyph by extension.
sizeNumberundefinedThe file's size in bytes, when known — rendered human.
statusString as PropType<"uploading" | "ready" | "error">"ready"The upload's state on the wire.

#AiAttachments

The row the files ride in — a wrapping line of chips.

A styled part — no props of its own; it takes the anatomy's shared styling.