U.S. flagA digital services project by Flexion

Branch Switcher

navigationCustominteractive

Dropdown for switching between branches with a filter and an inline create-branch form.

Custom component — no upstream reference.

Variants

Default

On Feature Branch

Contract

Documented variants

  • Default — Switcher trigger showing the main branch with a "published" badge; dropdown panel is hidden.
  • OnFeatureBranch — Switcher trigger showing a feature branch with an "ahead" count; multiple branches in the list.

Behavior promises

  • ○ Clicking the trigger button opens the dropdown panel by toggling aria-expanded and removing the hidden attribute
  • ○ Filtering the search input narrows the branch list to matching entries
  • ○ Submitting the create-branch form with a valid name navigates to the new branch

Source CSS