Dev Design Library

Branch

A message-versioning navigator that pages between regenerated/edited assistant variants for one turn, with prev/next controls and an X of N indicator (hidden at N=1). Wraps an existing Message non-intrusively; pure client state. Data source.

Branch preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Dependencies
lucide-react
Install
npx shadcn add @localmode/ui/ui/conversation/branch
Files
  • apps/ui/registry/localmode/conversation/branch/branch.tsx
  • apps/ui/registry/localmode/lib/utils.ts
  • apps/ui/registry/localmode/ui/button.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode