chat-01

PreviousNext

A simple chat page.

Docs API Reference
simple-aiblock

Preview

Loading preview…
./src/registry/blocks/chat-01/lib/config.ts
import { HomeIcon, SettingsIcon } from "lucide-react";

export const config: {
	mainRoutes: {
		path: string;
		matchExpression: RegExp;
		label: string;
		icon: React.ComponentType;
	}[];
} = {
	mainRoutes: [
		{
			path: "/",
			label: "Home",
			matchExpression: /^\/$/,
			icon: HomeIcon,
		},
		{
			path: "/settings",
			label: "Settings",
			matchExpression: /^\/settings$/,
			icon: SettingsIcon,
		},
	],
};

Installation

npx shadcn@latest add @simple-ai/chat-01

Usage

import { Chat01 } from "@/components/chat-01"
<Chat01 />