@chatsdk-dev/elements
v0.1.3
Published
AI components for ChatSDK
Maintainers
Readme
Elements
AI components for ChatSDK
Installation
npm install @chatsdk/elements
# or
pnpm add @chatsdk/elementsUsage
import { Chat, ChatSDKProvider } from "@chatsdk-dev/elements";
import "@chatsdk-dev/elements/styles.css";
function App() {
return (
<ChatSDKProvider
config={{
api: {
convexUrl: process.env.NEXT_PUBLIC_CONVEX_CLOUD_URL,
},
}}
>
<Chat />
</ChatSDKProvider>
);
}Configuration
The library uses a configuration system that allows you to customize:
- API endpoints
- Theming and styling
- Internationalization
- Context and user settings
Info: In the idea of layered composition and the layers particles (base-ui), atoms (shadcn, coss), molecules (patterns lke composed atoms), elements (sophisticated molecules with advanced functionality like api integration, advanced state management etc.) this elements package combines the layers molecules and elements as there are so far only a few.
