Skip to content

Tabs

An accessible tab group with roving tabindex, full keyboard navigation, and zero visual opinion.

Styled with CSS Tailwind

Basic Tabs

Click a tab or use Left / Right arrow keys, Home, and End to navigate. Disabled tabs are skipped automatically. ARIA roles, aria-selected, aria-controls, and aria-labelledby are wired automatically.

Account

Manage your account settings and preferences.

Sliding indicator and segmented control

A BitBhSelectionIndicator placed in the tab list follows the selected tab: the browser measures it and sets --bit-bh-indicator-left, -top, -width and -height - with no round trip to .NET - so the underline slides with a plain CSS transition (data-measured keeps it from sliding in on the first paint). In a BitBhRadioGroup the same part makes a segmented control.

Project overview.

Vertical Orientation

Set Vertical="true" to render tabs in a column. Arrow-key navigation switches to Up / Down, and the root and tablist both emit data-orientation="vertical". The CSS version keys its column layout off [data-orientation="vertical"]; the Tailwind version writes the column layout straight into the classes (flex-col, border-r-2).

General

Application-wide settings.

Manual Activation

With Manual="true" arrow keys only move keyboard focus; press Space or Enter to activate the focused tab. Useful when activating a tab is expensive (loads data, navigates, etc.) — try it: focus a tab, then arrow without selecting.

Inbox content

Disabled Tab

Set Disabled="true" on individual tabs. Arrow-key navigation skips disabled tabs, and the disabled tab still receives data-disabled: the CSS version dims it with a [data-disabled] selector, the Tailwind version with the data-disabled: variant.

Free plan features.

Render Context (state-driven content)

BitBhTab exposes a BitBhTabRenderContext via Context="t" so you can render badges, icons, or active indicators driven by the tab's own state — here t.IsSelected highlights the count badges.

Direct messages

Controlled

Drive selection externally with SelectedIndex and OnSelectedIndexChange. The buttons below select tabs programmatically.

SelectedIndex: 0

First panel

An unhandled error has occurred. Reload 🗙