Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@assistant-ui/react-hook-form) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
assistant-ui
assistant-ui is a set of React components for AI chat.
Documentation
Minimal Example with Vercel AI SDK
npx assistant-ui@latest add modal"use client";
import { useChat } from "@ai-sdk/react";
import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useVercelUseChatRuntime } from "@assistant-ui/react-ai-sdk";
import { AssistantModal } from "@/components/ui/assistant-ui/assistant-modal";
export default const MyApp = () => {
const chat = useChat({
api: "/api/chat" // your backend route
});
const runtime = useVercelUseChatRuntime(chat);
return (
<AssistantRuntimeProvider runtime={runtime}>
<AssistantModal />
</AssistantRuntimeProvider>
);
}