You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: '"@assistant-ui/react"' has no exported member named 'ComposerAttachment'. Did you mean 'CompleteAttachment'? CODE:
import { FC } from "react";
import { Composer, ThreadPrimitive } from "@assistant-ui/react";
import { ComposerAttachment } from "@assistant-ui/react";
Tried following the composer.attachments in dcomposition section of the documentation
LINK - https://www.assistant-ui.com/docs/ui/styled/Decomposition#composer
ERROR: '"@assistant-ui/react"' has no exported member named 'ComposerAttachment'. Did you mean 'CompleteAttachment'?
CODE:
import { FC } from "react";
import { Composer, ThreadPrimitive } from "@assistant-ui/react";
import { ComposerAttachment } from "@assistant-ui/react";
const MyComposerAttachment: FC = () => {
return (
<ComposerAttachment.Root>
attachment
<ComposerAttachment.Remove />
</ComposerAttachment.Root>
);
};
export const MyComposer: FC = () => {
return (
<Composer.Root>
<Composer.Attachments />
<Composer.AddAttachment />
<Composer.Input autoFocus />
<Composer.Action />
</Composer.Root>
);
};
Initially tried ThreadWelcome.Message and ThreadWelcome.suggestions, it worked but not exactly how it was mentioned in the documentation
VERSIONS USING
"@assistant-ui/react": "^0.7.0",
"@assistant-ui/react-markdown": "^0.7.0",
FILE STRUCTURE IMAGE

The text was updated successfully, but these errors were encountered: