Augeo AI Docs
Augeo Design SystemComponents

Attachment

One pending file in the chat composer. An image draws a thumbnail tile, a document draws a named chip, and both carry a remove control.

Attachment

Attachment is one file the member has staged in the chat composer, before the message is sent. The file's kind picks the image tile or the document chip, and its status paints uploading, uploaded or failed. The host owns the file, its status and its preview URL, so status is an input the component never advances. A host renders one Attachment per file inside ChatInput's attachments slot, which wraps them. A thumbnail that fails to load swaps to a plain fallback until the host passes a new src.

Interaction Phases

State space: none. This item renders no phase treatment of its own.

Politeness is not announced — this item carries no live region.

Storybook

Loading

Props

Prop

Type

Tokens

Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.

  • --augds-background-inverse
  • --augds-border-default
  • --augds-color-alpha-black-40
  • --augds-foreground-inverse
  • --augds-foreground-primary
  • --augds-interaction-focus-ring
  • --augds-radius-primitive-12
  • --augds-shadow-sm-element
  • --augds-spacing-4
  • --augds-status-error-fg
  • --augds-surface-current
  • --augds-surface-raised
  • --augds-surface-sunken

Source

  • src/components/ui/attachment/attachment.tsx