Attachment
shadcn/uiDisplays uploaded files, media previews, and actions in horizontal or vertical layouts.
Attachment
Installation
Props
<Attachment />
Name | Type | |
|---|---|---|
state | "done" | "error" | "idle" | "uploading" | "processing"(default: done) | |
orientation | "horizontal" | "vertical"(default: horizontal) |
<AttachmentMedia />
Name | Type | |
|---|---|---|
variant | "image" | "icon"(default: icon) |
<AttachmentAction />
Name | Type | |
|---|---|---|
variant | "link" | "outline" | "default"(default: ghost) | |
render | React.ReactElement | |
nativeButton | boolean | |
focusableWhenDisabled | boolean | |
animation | "none" | "all" | "colors" | "only-scale" |
<AttachmentTrigger />
Name | Type | |
|---|---|---|
render | string(default: undefined) |