- Name
parts- Kind
- property
- Type
readonly ["root", "previous", "next", "number", "count"]- Requirement
- required
DocsAPI referenceHeadlessassistant-branch-picker
assistant-branch-picker headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
5 of 5
@grassroot/ui-headless-core/assistant-branch-picker
Core connector and vanilla API
assistantBranchPickerAnatomyts
export declare const assistantBranchPickerAnatomy: { readonly scope: "assistant-branch-picker"; readonly parts: readonly ["root", "previous", "next", "number", "count"];};Name
Kind
Type
Requirement
partsproperty
readonly ["root", "previous", "next", "number", "count"]required
scopeproperty
"assistant-branch-picker"required
- Name
scope- Kind
- property
- Type
"assistant-branch-picker"- Requirement
- required
AssistantBranchPickerApi
interfaceAssistantBranchPickerApits
interface AssistantBranchPickerApi { rootProps(): PartProps; previousProps(): PartProps; nextProps(): PartProps; numberProps(): PartProps; countProps(): PartProps; readonly canPrevious: boolean; readonly canNext: boolean;}Name
Kind
Type
Requirement
canNextproperty
booleanrequired
canPreviousproperty
booleanrequired
countPropsmethod
() => PartPropsrequired
nextPropsmethod
() => PartPropsrequired
numberPropsmethod
() => PartPropsrequired
previousPropsmethod
() => PartPropsrequired
rootPropsmethod
() => PartPropsrequired
- Name
canNext- Kind
- property
- Type
boolean- Requirement
- required
- Name
canPrevious- Kind
- property
- Type
boolean- Requirement
- required
- Name
countProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
nextProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
numberProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
previousProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
rootProps- Kind
- method
- Type
() => PartProps- Requirement
- required
AssistantBranchPickerConnectOptions
interfaceAssistantBranchPickerConnectOptionsts
interface AssistantBranchPickerConnectOptions { readonly branches: readonly string[]; readonly currentIndex: number; readonly isRunning?: boolean; readonly switchBranchDuringRun?: boolean; readonly onSwitch?: (branchId: string) => void;}Name
Kind
Type
Requirement
branchesproperty
readonly string[]required
currentIndexproperty
numberrequired
isRunningproperty
booleanoptional
onSwitchproperty
(branchId: string) => voidoptional
switchBranchDuringRunproperty
booleanoptional
- Name
branches- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
currentIndex- Kind
- property
- Type
number- Requirement
- required
- Name
isRunning- Kind
- property
- Type
boolean- Requirement
- optional
- Name
onSwitch- Kind
- property
- Type
(branchId: string) => void- Requirement
- optional
- Name
switchBranchDuringRun- Kind
- property
- Type
boolean- Requirement
- optional
AssistantBranchPickerPartts
type AssistantBranchPickerPart = (typeof assistantBranchPickerAnatomy.parts)[number];connectAssistantBranchPicker
functionconnectAssistantBranchPickerts
declare function connectAssistantBranchPicker(scope: PartScope, options: AssistantBranchPickerConnectOptions): AssistantBranchPickerApi;Name
Kind
Type
Requirement
scopeparameter
PartScoperequired
optionsparameter
AssistantBranchPickerConnectOptionsrequired
returnreturn value
AssistantBranchPickerApin/a
- Name
scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
options- Kind
- parameter
- Type
AssistantBranchPickerConnectOptions- Requirement
- required
- Name
return- Kind
- return value
- Type
AssistantBranchPickerApi- Requirement
- n/a
Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
This entry is core-only. No framework adapter package ships for assistant-branch-picker yet — mount it through the vanilla API above.