docs/snippets/shared/troubleshooting/migrate-to-1.8.2.mdx
import { Accordions, Accordion } from "fumadocs-ui/components/accordion"; import { CopilotKit } from "@copilotkit/react-core"; import { NewLookAndFeelPreview } from "@/components/react/component-previews/new-look-and-feel";
CopilotKit 1.8.2 introduces a new default look and feel. This includes new use of theming variables, new components, and generally a fresh look.
Click the button in the bottom right to see the new look and feel in action!
The chat components now have onThumbsUp and onThumbsDown handlers. Specifying these will add icons to each message
on hover allowing the user to provide feedback.
<CopilotChat
onThumbsUp={(message) => console.log(message)}
onThumbsDown={(message) => console.log(message)}
/>
This was previously achievable in our framework, but we're making it first class now! You can use this to help fine-tune your model through CopilotKit or just generally track user feedback.
The ResponseButton prop has been removed. This was a prop that was used to customize the button that appears after a response was generated
in the chat.
In its place, we now place buttons below each message for:
The behvior, icons and styling for each of these buttons can be customized. Checkout our look and feel guides for more details.
CopilotKit now has out-of-the-box dark mode support. This is controlled by the .dark class (Tailwind) as well as the
color-scheme CSS selector.
If you would like to make a custom theme, you can do so by checking out the custom look and feel guides.
<NewLookAndFeelPreview/>