# BranchPickerPrimitive URL: /docs/api-reference/primitives/branch-picker Navigate between conversation branches with previous/next controls. View and switch between branches. Anatomy \[#anatomy] ```tsx import { BranchPickerPrimitive } from "@assistant-ui/react"; const BranchPicker = () => ( / ); ``` API Reference \[#api-reference] Root \[#root] Contains all parts of the branch picker. This primitive renders a `
` element unless `asChild` is set. Number \[#number] The current branch number. This primitive renders the raw number as a string. Count \[#count] The total number of branches. This primitive renders the raw number as a string. Previous \[#previous] Navigates to the previous branch. This primitive renders a `