Attachment tray preview
Review queued files, progress and errors before sending a message.
pro · Blocks · composite
When to use
- Use it when a page needs review queued files, progress and errors before sending a message.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than attachment tray.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/attachment-trayImport components/ui/tidal.css, components/ui/attachment-tray.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/attachment-tray.css";
import{TidalAttachmentTray}from"./components/ui/attachment-tray";
export default()=><div className="tidal-scope"><TidalAttachmentTray attachments={[{id:"example",name:"Demo",status:"error"}]} label={"Demo"}/></div>;API and props
TidalAttachmentTray.attachments (required)ReadonlyArray<TidalAttachment>Required attachments value accepted by this exported component.
TidalAttachmentTray.label (required)stringRequired label value accepted by this exported component.
TidalAttachmentTray.actionsReactNodeOptional actions value accepted by this exported component.
TidalAttachmentTray.aria-disabledBooleanish | undefinedAccessible disabled supplied by the consumer.
TidalAttachmentTray.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalAttachmentTray.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalAttachmentTray.headingLevel2 | 3 | 4 | 5 | 6 | undefinedOptional heading level value accepted by this exported component.
TidalAttachmentTray.onRemove((attachment: TidalAttachment, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the remove interaction is proposed.
TidalAttachmentTray.onRetry((attachment: TidalAttachment, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the retry interaction is proposed.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.