Skip to content

Commit

Permalink
docs: fix imports in primitive docs (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 20, 2024
1 parent 9770ebb commit 0d83f67
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/www/pages/docs/advanced/Branching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Branches are automatically tracked by assistant-ui by observing changes to the `
You can show a branch picker by using `BranchPickerPrimitive`.

```tsx {1, 8, 15-30}
import { BranchPickerPrimitive } from "assistant-ui";
import { BranchPickerPrimitive } from "@assistant-ui/react";


const Message = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/docs/advanced/Editing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Give the user the ability to edit their message.
You can show an editor interface by using `ComposerPrimitive`.

```tsx {1,11,25,31-43}
import { ComposerPrimitive } from "assistant-ui";
import { ComposerPrimitive } from "@assistant-ui/react";
...

const Thread = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/ActionBar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Code } from "@radix-ui/themes";
## Anatomy

```tsx
import { ActionBarPrimitive } from "assistant-ui";
import { ActionBarPrimitive } from "@assistant-ui/react";

const UserMessageBar = () => (
<ActionBarPrimitive.Root>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/BranchPicker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PropsTable } from "@/components/docs";
## Anatomy

```tsx
import { BranchPickerPrimitive } from "assistant-ui";
import { BranchPickerPrimitive } from "@assistant-ui/react";

const BranchPicker = () => (
<BranchPickerPrimitive.Root>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/Composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Code } from "@radix-ui/themes";
## Anatomy

```tsx
import { ComposerPrimitive } from "assistant-ui";
import { ComposerPrimitive } from "@assistant-ui/react";

// creating a new message
const Composer = () => (
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/ContentPart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: A part of a message's content. Content parts may be text, image, to
## Anatomy

```tsx
import { ContentPartPrimitive } from "assistant-ui";
import { ContentPartPrimitive } from "@assistant-ui/react";

const TextContentPart = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/Message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PropsTable } from "@/components/docs";
## Anatomy

```tsx
import { MessagePrimitive } from "assistant-ui";
import { MessagePrimitive } from "@assistant-ui/react";

const UserMessage = () => (
<MessagePrimitive.Root>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/pages/reference/primitives/Thread.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PropsTable } from "@/components/docs";
## Anatomy

```tsx
import { ThreadPrimitive } from "assistant-ui";
import { ThreadPrimitive } from "@assistant-ui/react";

const Thread = () => (
<ThreadPrimitive.Root>
Expand Down

0 comments on commit 0d83f67

Please sign in to comment.