remix-nlux
Version:
Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.
10 lines (7 loc) • 357 B
text/mdx
Import the `useChatAdapter` hook and the `AiChat` component in your JSX file:
```tsx
import {AiChat} from '@nlux/react';
import {useChatAdapter} from '@nlux/nlbridge-react';
```
The `AiChat` component is the main chat component that you will use to display the chat UI.<br />
The `useChatAdapter` hook is used to create an adapter for the _nlbridge_ API.