examples/v2/angular/storybook/stories/Welcome.mdx
import { Meta } from "@storybook/blocks";
<Meta title="Welcome" />Welcome to the CopilotKit Angular Storybook! This is the dedicated documentation and showcase for all Angular components in the CopilotKit ecosystem.
CopilotKit is a comprehensive toolkit for building AI-powered copilot experiences in your applications. This Angular package provides native Angular components that integrate seamlessly with your Angular applications.
npm install @copilotkit/angular
# or
pnpm add @copilotkit/angular
import { Component } from "@angular/core";
import { CopilotChatInput } from "@copilotkit/angular";
import { provideCopilotChatConfiguration } from "@copilotkit/angular";
@Component({
selector: "app-chat",
standalone: true,
imports: [CopilotChatInput],
providers: [
provideCopilotChatConfiguration({
labels: {
chatInputPlaceholder: "Type a message...",
},
}),
],
template: `
<copilot-chat-input
(submitMessage)="onSubmitMessage($event)"
></copilot-chat-input>
`,
})
export class ChatComponent {
onSubmitMessage(message: string): void {
console.log("Message:", message);
}
}
Built with the latest Angular features including:
All components are fully typed with comprehensive TypeScript definitions.
This Storybook runs alongside the React Storybook on port 6007.
# Run Angular Storybook in development mode
pnpm --filter storybook-angular dev
# Build Angular Storybook for production
pnpm --filter storybook-angular build
For issues, feature requests, or questions:
Built with Angular 19 and Storybook 8