# BranchPicker URL: /docs/primitives/branch-picker Navigate between message branches, which are alternative responses the user can flip through. The BranchPicker primitive lets users navigate between message branches, which are alternative responses generated by editing a message or regenerating a reply. It's used alongside ActionBar inside message components. ```tsx import { BranchPickerPrimitive, MessagePrimitive, } from "@assistant-ui/react"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; function AssistantMessage() { return (
/
); } ```
Quick Start \[#quick-start] Minimal example: ```tsx import { BranchPickerPrimitive } from "@assistant-ui/react"; / ``` `Root` renders a `
`, `Previous` and `Next` render `