Skip to content

BbDropdownButton

A split button for one frequent action and a short menu of close alternatives.

import { BbDropdownButton } from 'bitboss-ui';

On this page

Use it for

Use BbDropdownButton when one action is frequent and the menu contains close alternatives: Save / Save as draft, Export / Export as CSV, Merge / Squash.

Use something else when

Pass Through

Hover or tap a part to outline it. Toggles flip loading, errors and warnings when the component has them — only parts highlight.

Its item model comes from BbDropdown; variants and sizes come from BbButton.

Put the frequent action first

items[0] becomes the main button; every later item opens from the toggle.

Unsaved changes

Keep the first entry a plain leaf item. A leading group or nested array promotes only its first leaf and silently drops the rest of that entry.

Keep both halves coherent

Set variant, size, block and icons on the component, not items[0].

right:icon replaces only the toggle chevron.

Coming from v2theme → variant

theme is removed; use variant. arrowPadding is also removed because the menu has no arrow.

Return promises from actions

When an action returns a promise, its half shows loading and blocks re-entry.

Draft

Use loading only for external work. disable-auto-loading opts the main action out; menu actions still drive the toggle.

Coming from v2autoLoading → disableAutoLoading

The prop was renamed with inverted polarity. disabledWhileLoading is removed; busy halves are always disabled.

Gate dangerous alternatives

Keep irreversible work behind the toggle, mark it destructive and await confirmation before acting.

vantera-web · production

dpl_7k2f · deployed 08 Jul 2026

Mount one <BbConfirm> host at application level, not beside every split button.

Let the menu configure the action

A selectable group can change the primary action; recompute items so the main label always states what pressing it will do.

2 approvals · all checks passed

Bind the group with <BbDropdownGroup> and give the promoted item a unique key.

Menu slots and placement props forward to the inner dropdown.

The menu aligns to the whole split control. trigger, adaptive, offCanvasProps, anchor and boundary are not exposed; use BbDropdown directly when one of them is required.