Skip to content

Commit 48ddd93

Browse files
authored
Update bring-your-own-components.mdx
1 parent f4dd3f8 commit 48ddd93

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/content/docs/(root)/guides/custom-look-and-feel/bring-your-own-components.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ The suggestions component allows you to customize how suggestions are displayed.
299299
} from "@copilotkit/react-ui";
300300
import "@copilotkit/react-ui/styles.css";
301301

302-
const CustomSuggestionsList = (props: UserMessageProps) => {
302+
const CustomSuggestionsList = (props: RenderSuggestionsListProps) => {
303+
const { suggestions, onSuggestionClick } = props
304+
303305
const wrapperStyles = "flex items-center gap-2 justify-end mb-4";
304306
const messageStyles = "bg-blue-500 text-white py-2 px-4 rounded-xl break-words flex-shrink-0 max-w-[80%]";
305307
const avatarStyles = "bg-blue-500 shadow-sm min-h-10 min-w-10 rounded-full text-white flex items-center justify-center";
@@ -472,4 +474,4 @@ useCoAgentStateRender<AgentState>({
472474
},
473475
});
474476
```
475-
</ImageAndCode>
477+
</ImageAndCode>

0 commit comments

Comments
 (0)