-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Description
#151 introduced a new design for file attachments inside the PromptInput component. The Queue component still uses the old design which would be great to update so that both are consistent.
Code reference
ai-elements/packages/elements/src/queue.tsx
Lines 141 to 180 in 4a33f08
| export const QueueItemAttachment = ({ | |
| className, | |
| ...props | |
| }: QueueItemAttachmentProps) => ( | |
| <div className={cn("mt-1 flex flex-wrap gap-2", className)} {...props} /> | |
| ); | |
| export type QueueItemImageProps = ComponentProps<"img">; | |
| export const QueueItemImage = ({ | |
| className, | |
| ...props | |
| }: QueueItemImageProps) => ( | |
| <img | |
| alt="" | |
| className={cn("h-8 w-8 rounded border object-cover", className)} | |
| height={32} | |
| width={32} | |
| {...props} | |
| /> | |
| ); | |
| export type QueueItemFileProps = ComponentProps<"span">; | |
| export const QueueItemFile = ({ | |
| children, | |
| className, | |
| ...props | |
| }: QueueItemFileProps) => ( | |
| <span | |
| className={cn( | |
| "flex items-center gap-1 rounded border bg-muted px-2 py-1 text-xs", | |
| className | |
| )} | |
| {...props} | |
| > | |
| <PaperclipIcon size={12} /> | |
| <span className="max-w-[100px] truncate">{children}</span> | |
| </span> | |
| ); |
Metadata
Metadata
Assignees
Labels
No labels