Skip to content

Commit

Permalink
Docs fixes and added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
iipanda committed Oct 31, 2024
1 parent 1901d4b commit 38724ef
Show file tree
Hide file tree
Showing 17 changed files with 217 additions and 1,323 deletions.
66 changes: 66 additions & 0 deletions apps/www/__registry__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,70 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: []
},
"chat-message-demo": {
name: "chat-message-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/chat-message-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/chat-message-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
"message-list-demo": {
name: "message-list-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/message-list-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/message-list-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
"typing-indicator-demo": {
name: "typing-indicator-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/typing-indicator-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/typing-indicator-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
"markdown-renderer-demo": {
name: "markdown-renderer-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/markdown-renderer-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/markdown-renderer-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
"prompt-suggestions-demo": {
name: "prompt-suggestions-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/prompt-suggestions-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/prompt-suggestions-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
"copy-button-demo": {
name: "copy-button-demo",
type: "registry:example",
registryDependencies: undefined,
files: ["registry/default/example/copy-button-demo.tsx"],
component: React.lazy(() => import("@/registry/default/example/copy-button-demo.tsx")),
source: "",
category: "undefined",
subcategory: "undefined",
chunks: []
},
}
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/chat-message.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ChatMessage
title: Chat Message
description: A customizable message bubble component for chat interfaces with support for user and AI messages.
component: true
---
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/copy-button.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: CopyButton
title: Copy Button
description: A button component that copies content to clipboard with visual feedback.
component: true
---
Expand Down
4 changes: 2 additions & 2 deletions apps/www/content/docs/components/markdown-renderer.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: MarkdownRenderer
title: Markdown Renderer
description: A customizable component for rendering Markdown content with consistent styling.
component: true
---

<ComponentPreview
name="markdown-demo"
name="markdown-renderer-demo"
title="Markdown"
description="A styled markdown renderer."
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/message-input.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: MessageInput
title: Message Input
description: A textarea component with file attachment support, auto-resizing, and drag-and-drop capabilities.
component: true
---
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/message-list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: MessageList
title: Message List
description: A component for rendering a list of chat messages with a typing indicator.
component: true
---
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/prompt-suggestions.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: PromptSuggestions
title: Prompt Suggestions
description: A component that displays clickable prompt suggestions for empty chat states.
component: true
---
Expand Down
Loading

0 comments on commit 38724ef

Please sign in to comment.