Skip to content

Commit

Permalink
docs: fix line highlights (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 21, 2024
1 parent 61c3c28 commit 4ffa9e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/www/pages/docs/advanced/ToolUI.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const MyApp = () => {

If you need access to component props, you can use the `useAssistantToolUI` hook.

```tsx {1, 4}
```tsx {5-11}
import { useAssistantToolUI } from "@assistant-ui/react/experimental";
import { useCallback } from "react";

Expand All @@ -107,7 +107,7 @@ const MyComponent = ({ product_id }) => {
// you can access component props here
return <p>product_info({ product_id })</p>;
}, [product_id]),
})
});

...
};
Expand All @@ -128,7 +128,7 @@ const MyApp = () => {

The following example shows a `date_picker` tool that the AI can call to collect a date from the user.

```tsx {1, 4}
```tsx {12}
import { makeAssistantToolUI } from "@assistant-ui/react/experimental";
import { DatePicker } from "@/components/datepicker";

Expand Down

0 comments on commit 4ffa9e3

Please sign in to comment.