We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Thank you for your response @Yonom and opening this new thread, I tried editing the code accordingly and got a different error.
ERROR Unhandled Runtime Error Error: This component must be used within a ComposerPrimitive.Attachments or MessagePrimitive.Attachments component.
CODE
import { FC } from "react"; import { Composer, ThreadPrimitive } from "@assistant-ui/react";
import { AttachmentUI } from "@assistant-ui/react";
const MyAttachmentUI: FC = () => { return ( <AttachmentUI.Root> attachment <AttachmentUI.Remove /> </AttachmentUI.Root> ); };
export const MyComposer: FC = () => { return ( <Composer.Root> <Composer.AddAttachment /> <Composer.Input autoFocus /> <Composer.Action /> </Composer.Root> ); };
Sorry, something went wrong.
@utkarsh-alpuria can you try this in order to render MyAttachmentUI for each attachment:
export const MyComposer: FC = () => { return ( <Composer.Root> <Composer.AddAttachment /> <Composer.Attachments components={{ Attachment: MyAttachmentUI }} /> <Composer.Input autoFocus /> <Composer.Action /> </Composer.Root> ); };
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: