Skip to content

Tabs ​

A component that toggles between related panels on the same page.

Workspace stats and activity.

vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';
import styles from './index.module.css';
</script>

<template>
  <Tabs.Root :class="styles.Root" default-value="overview">
    <Tabs.List :class="styles.List">
      <Tabs.Tab :class="styles.Tab" value="overview">Overview</Tabs.Tab>
      <Tabs.Tab :class="styles.Tab" value="projects">Projects</Tabs.Tab>
      <Tabs.Tab :class="styles.Tab" value="account">Account</Tabs.Tab>
      <Tabs.Indicator :class="styles.Indicator" />
    </Tabs.List>
    <div :class="styles.PanelViewport">
      <Tabs.Panel :class="styles.Panel" value="overview">
        <p :class="styles.Paragraph">Workspace stats and activity.</p>
      </Tabs.Panel>
      <Tabs.Panel :class="styles.Panel" value="projects">
        <p :class="styles.Paragraph">Milestones and deadlines.</p>
      </Tabs.Panel>
      <Tabs.Panel :class="styles.Panel" value="account">
        <p :class="styles.Paragraph">Profile and preferences.</p>
      </Tabs.Panel>
    </div>
  </Tabs.Root>
</template>
css
.Root {
  box-sizing: border-box;
  width: 100%;
  max-width: 20rem;
}

.List {
  display: flex;
  position: relative;
  z-index: 1;
  gap: 0.25rem;
  margin-bottom: -1px;
}

.Tab {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 0;
  outline: 0;
  background: none;
  color: oklch(43.9% 0 0deg);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  word-break: keep-all;
  padding-inline: 0.5rem;
  padding-block: 0;
  height: calc(2rem + 1px);

  @media (prefers-color-scheme: dark) {
    color: oklch(87% 0 0deg);
  }

  @media (hover: hover) {
    &:hover {
      color: oklch(14.5% 0 0deg);

      @media (prefers-color-scheme: dark) {
        color: white;
      }
    }
  }

  &[aria-selected='true'] {
    color: oklch(14.5% 0 0deg);

    @media (prefers-color-scheme: dark) {
      color: white;
    }
  }

  &:focus-visible {
    outline: 2px solid oklch(14.5% 0 0deg);
    outline-offset: -1px;

    @media (prefers-color-scheme: dark) {
      outline-color: white;
    }
  }
}

.Indicator {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  translate: var(--active-tab-left);
  width: var(--active-tab-width);
  height: 100%;
  transition-property: translate, width;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
  border-top: 1px solid oklch(14.5% 0 0deg);
  border-inline: 1px solid oklch(14.5% 0 0deg);
  background-color: white;

  @media (prefers-color-scheme: dark) {
    border-top: 1px solid white;
    border-inline: 1px solid white;
    background-color: oklch(14.5% 0 0deg);
  }
}

.PanelViewport {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 8rem;
  border-inline: 1px solid oklch(14.5% 0 0deg);
  border-block: 1px solid oklch(14.5% 0 0deg);

  @media (prefers-color-scheme: dark) {
    border-inline: 1px solid white;
    border-block: 1px solid white;
  }
}

.Panel {
  box-sizing: border-box;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;

  outline: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  color: oklch(14.5% 0 0deg);
  background-color: white;

  @media (prefers-color-scheme: dark) {
    color: white;
    background-color: oklch(14.5% 0 0deg);
  }

  &:focus-visible {
    outline: 2px solid oklch(14.5% 0 0deg);
    outline-offset: -1px;
    z-index: 1;

    @media (prefers-color-scheme: dark) {
      outline-color: white;
    }
  }

  &[hidden] {
    display: none;
  }
}

.Paragraph {
  margin: 0;
}
vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';

const tabClassName =
  'flex h-[calc(2rem+1px)] items-center justify-center bg-transparent px-2 py-0 font-inherit text-sm font-normal leading-5 break-keep whitespace-nowrap text-neutral-600 outline-none select-none hover:text-neutral-950 focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-1 focus-visible:outline-neutral-950 dark:focus-visible:outline-white aria-selected:text-neutral-950 dark:text-neutral-300 dark:hover:text-white dark:aria-selected:text-white';

const panelClassName =
  'col-start-1 row-start-1 flex w-full items-center justify-center bg-white p-4 text-center text-sm text-neutral-950 outline-none focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-1 focus-visible:outline-neutral-950 dark:focus-visible:outline-white dark:bg-neutral-950 dark:text-white [[hidden]]:hidden';
</script>

<template>
  <Tabs.Root class="w-full max-w-xs" default-value="overview">
    <Tabs.List class="relative z-1 -mb-px flex gap-1">
      <Tabs.Tab :class="tabClassName" value="overview">Overview</Tabs.Tab>
      <Tabs.Tab :class="tabClassName" value="projects">Projects</Tabs.Tab>
      <Tabs.Tab :class="tabClassName" value="account">Account</Tabs.Tab>
      <Tabs.Indicator
        class="absolute top-0 left-0 -z-1 h-full w-(--active-tab-width) translate-x-(--active-tab-left) border-x border-t border-neutral-950 bg-white transition-[translate,width] duration-150 ease-in-out dark:border-white dark:bg-neutral-950"
      />
    </Tabs.List>
    <div class="grid w-full min-h-32 grid-cols-1 border border-neutral-950 dark:border-white">
      <Tabs.Panel :class="panelClassName" value="overview">
        <p>Workspace stats and activity.</p>
      </Tabs.Panel>
      <Tabs.Panel :class="panelClassName" value="projects">
        <p>Milestones and deadlines.</p>
      </Tabs.Panel>
      <Tabs.Panel :class="panelClassName" value="account">
        <p>Profile and preferences.</p>
      </Tabs.Panel>
    </div>
  </Tabs.Root>
</template>

Anatomy ​

Import the component and assemble its parts:

vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';
</script>

<template>
  <Tabs.Root>
    <Tabs.List>
      <Tabs.Tab value="" />
      <Tabs.Indicator />
    </Tabs.List>
    <Tabs.Panel value="" />
  </Tabs.Root>
</template>

Examples ​

Animated panels ​

Put each panel in a <Transition> to animate it when its tab becomes active. The data-activation-direction attribute gives the side of the new active tab from the old one. The panel that enters can then slide in from the correct side, and the panel that leaves can slide out to the other side.

Workspace stats and activity.

vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';
import styles from './index.module.css';

const enterFromClass = styles.PanelEnterFrom;
const leaveToClass = styles.PanelLeaveTo;
</script>

<template>
  <Tabs.Root :class="styles.Root" default-value="overview">
    <Tabs.List :class="styles.List">
      <Tabs.Tab :class="styles.Tab" value="overview">Overview</Tabs.Tab>
      <Tabs.Tab :class="styles.Tab" value="projects">Projects</Tabs.Tab>
      <Tabs.Tab :class="styles.Tab" value="account">Account</Tabs.Tab>
      <Tabs.Indicator :class="styles.Indicator" />
    </Tabs.List>
    <div :class="styles.PanelViewport">
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="styles.Panel" value="overview">
          <p :class="styles.Paragraph">Workspace stats and activity.</p>
        </Tabs.Panel>
      </Transition>
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="styles.Panel" value="projects">
          <p :class="styles.Paragraph">Milestones and deadlines.</p>
        </Tabs.Panel>
      </Transition>
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="styles.Panel" value="account">
          <p :class="styles.Paragraph">Profile and preferences.</p>
        </Tabs.Panel>
      </Transition>
    </div>
  </Tabs.Root>
</template>
css
.Root {
  box-sizing: border-box;
  width: 100%;
  max-width: 20rem;
}

.List {
  display: flex;
  position: relative;
  z-index: 1;
  gap: 0.25rem;
  margin-bottom: -1px;
}

.Tab {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 0;
  outline: 0;
  background: none;
  color: oklch(43.9% 0 0deg);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  word-break: keep-all;
  padding-inline: 0.5rem;
  padding-block: 0;
  height: calc(2rem + 1px);

  @media (prefers-color-scheme: dark) {
    color: oklch(87% 0 0deg);
  }

  @media (hover: hover) {
    &:hover {
      color: oklch(14.5% 0 0deg);

      @media (prefers-color-scheme: dark) {
        color: white;
      }
    }
  }

  &[aria-selected='true'] {
    color: oklch(14.5% 0 0deg);

    @media (prefers-color-scheme: dark) {
      color: white;
    }
  }

  &:focus-visible {
    outline: 2px solid oklch(14.5% 0 0deg);
    outline-offset: -1px;

    @media (prefers-color-scheme: dark) {
      outline-color: white;
    }
  }
}

.Indicator {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  translate: var(--active-tab-left);
  width: var(--active-tab-width);
  height: 100%;
  transition-property: translate, width;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
  border-top: 1px solid oklch(14.5% 0 0deg);
  border-inline: 1px solid oklch(14.5% 0 0deg);
  background-color: white;

  @media (prefers-color-scheme: dark) {
    border-top: 1px solid white;
    border-inline: 1px solid white;
    background-color: oklch(14.5% 0 0deg);
  }
}

.PanelViewport {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 8rem;
  overflow: hidden;
  border-inline: 1px solid oklch(14.5% 0 0deg);
  border-block: 1px solid oklch(14.5% 0 0deg);
  background-color: white;

  @media (prefers-color-scheme: dark) {
    border-inline: 1px solid white;
    border-block: 1px solid white;
    background-color: oklch(14.5% 0 0deg);
  }
}

.Panel {
  box-sizing: border-box;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;

  outline: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  color: oklch(14.5% 0 0deg);

  transition:
    opacity 175ms ease,
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1);

  @media (prefers-color-scheme: dark) {
    color: white;
  }

  &:focus-visible {
    outline: 2px solid oklch(14.5% 0 0deg);
    outline-offset: -1px;
    z-index: 1;

    @media (prefers-color-scheme: dark) {
      outline-color: white;
    }
  }
}

.PanelEnterFrom,
.PanelLeaveTo {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .PanelEnterFrom {
    &[data-activation-direction='left'] {
      transform: translateX(-50%);
    }
    &[data-activation-direction='right'] {
      transform: translateX(50%);
    }
  }

  .PanelLeaveTo {
    &[data-activation-direction='left'] {
      transform: translateX(50%);
    }
    &[data-activation-direction='right'] {
      transform: translateX(-50%);
    }
  }
}

.Paragraph {
  margin: 0;
}
vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';

const tabClassName =
  'flex h-[calc(2rem+1px)] items-center justify-center bg-transparent px-2 py-0 font-inherit text-sm font-normal leading-5 break-keep whitespace-nowrap text-neutral-600 outline-none select-none hover:text-neutral-950 focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-1 focus-visible:outline-neutral-950 dark:focus-visible:outline-white aria-selected:text-neutral-950 dark:text-neutral-300 dark:hover:text-white dark:aria-selected:text-white';

const panelClassName =
  'col-start-1 row-start-1 flex w-full items-center justify-center p-4 text-center text-sm text-neutral-950 outline-none focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-1 focus-visible:outline-neutral-950 dark:focus-visible:outline-white dark:text-white ' +
  '[transition:opacity_175ms_ease,translate_350ms_cubic-bezier(0.22,1,0.36,1)]';

const enterFromClass =
  'opacity-0 motion-safe:data-[activation-direction=left]:translate-x-[-50%] motion-safe:data-[activation-direction=right]:translate-x-[50%]';

const leaveToClass =
  'opacity-0 motion-safe:data-[activation-direction=left]:translate-x-[50%] motion-safe:data-[activation-direction=right]:translate-x-[-50%]';
</script>

<template>
  <Tabs.Root class="w-full max-w-xs" default-value="overview">
    <Tabs.List class="relative z-1 -mb-px flex gap-1">
      <Tabs.Tab :class="tabClassName" value="overview">Overview</Tabs.Tab>
      <Tabs.Tab :class="tabClassName" value="projects">Projects</Tabs.Tab>
      <Tabs.Tab :class="tabClassName" value="account">Account</Tabs.Tab>
      <Tabs.Indicator
        class="absolute top-0 left-0 -z-1 h-full w-(--active-tab-width) translate-x-(--active-tab-left) border-x border-t border-neutral-950 bg-white transition-[translate,width] duration-150 ease-in-out dark:border-white dark:bg-neutral-950"
      />
    </Tabs.List>
    <div
      class="relative grid min-h-32 w-full grid-cols-1 overflow-hidden border border-neutral-950 bg-white dark:border-white dark:bg-neutral-950"
    >
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="panelClassName" value="overview">
          <p>Workspace stats and activity.</p>
        </Tabs.Panel>
      </Transition>
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="panelClassName" value="projects">
          <p>Milestones and deadlines.</p>
        </Tabs.Panel>
      </Transition>
      <Transition :enter-from-class="enterFromClass" :leave-to-class="leaveToClass">
        <Tabs.Panel :class="panelClassName" value="account">
          <p>Profile and preferences.</p>
        </Tabs.Panel>
      </Transition>
    </div>
  </Tabs.Root>
</template>

Render an <a> in the element slot of <Tabs.Tab>, or give as a link component, such as RouterLink. The tab reads its element, so a link activates with a press, Enter and Space.

vue
<script setup lang="ts">
import { Tabs } from '@vase-ui/vue/tabs';
</script>

<template>
  <Tabs.Root default-value="overview">
    <Tabs.List>
      <Tabs.Tab value="overview">
        <template #element="{ props, elementRef }">
          <a v-bind="props" :ref="elementRef" href="#overview">Overview</a>
        </template>
      </Tabs.Tab>
    </Tabs.List>
    <Tabs.Panel value="overview">Workspace stats and activity.</Tabs.Panel>
  </Tabs.Root>
</template>

Render on the server ​

The server HTML has the active tab and its open panel. In the server render, a part knows only the parts before it. A panel before the list is thus open in the server HTML only when the root has a modelValue or a defaultValue.

Tabs.Indicator has no measure in the server HTML, so it is hidden until the mount. When the page shows the server HTML for some time, set renderBeforeHydration. An inline script in the indicator then places it before the app starts.

API reference ​

Tabs.Root ​

Groups the tabs and the corresponding panels. Renders a <div> element.

Props

PropTypeDefaultDescription
defaultValueValue | null | undefinedThe value of the active tab at the mount of an uncontrolled root. With no value, the first tab that is not disabled is active. With null, no tab is active.
modelValueValue | null | undefinedThe value of the active tab. With null, no tab is active.
orientationTabsRootOrientation | undefined'horizontal'The direction in which the tabs follow each other.
askeyof HTMLElementTagNameMap | Component | GenericComponent | undefinedA tag or a component that the part renders in place of its own element, with the same attributes and content. The element slot wins over it.

Slots

SlotSlot propsDescription
default
state: TabsRootState
The content of the part.
element
props: Record<string, unknown>
elementRef: (target: unknown) => void
state: TabsRootState
Renders your element in place of the element of the part. Bind props with v-bind and elementRef with :ref.

Events

EventArgumentsDescription
valueChange[value: Value | null, details: TabsRootChangeEventDetails]The value changes. details.reason is none for a change by the user, and details.cancel() then keeps the value as it was. An uncontrolled root also changes its value itself: the first tab that is not disabled at the mount (initial), and the first tab that is not disabled, or null, when the active tab is disabled (disabled) or no tab has the value (missing). Such a change cannot be cancelled.
update:modelValue[value: Value | null]Comes after the change event with the new value, unless a listener cancels the change. v-model uses it.

Exposed

MemberTypeDescription
elementHTMLDivElement | nullThe element of the part, or null while it is not mounted.

Selectors

SelectorDescription
[data-orientation]The orientation of the tabs: horizontal or vertical.
[data-activation-direction]The side of the new active tab from the old one: left, right, up, down or none.

Tabs.List ​

Groups the individual tab buttons. At the mount, a list that scrolls shows its active tab. Renders a <div> element with the role tablist.

Props

PropTypeDefaultDescription
activateOnFocusboolean | undefinedfalseAn arrow key, Home and End also make the tab that gets the focus active.
loopFocusboolean | undefinedtrueAn arrow key moves the focus from the last tab to the first, and from the first to the last.
askeyof HTMLElementTagNameMap | Component | GenericComponent | undefinedA tag or a component that the part renders in place of its own element, with the same attributes and content. The element slot wins over it.

Slots

SlotSlot propsDescription
default
state: TabsRootState
The content of the part.
element
props: Record<string, unknown>
elementRef: (target: unknown) => void
state: TabsRootState
Renders your element in place of the element of the part. Bind props with v-bind and elementRef with :ref.

Exposed

MemberTypeDescription
elementHTMLDivElement | nullThe element of the part, or null while it is not mounted.

Selectors

SelectorDescription
[aria-orientation="vertical"]The tabs are vertical.
[data-activation-direction]The side of the new active tab from the old one: left, right, up, down or none.

Tabs.Tab ​

An individual interactive tab button that toggles the corresponding panel. Renders a <button> element with the role tab.

Props

PropTypeDefaultDescription
disabledboolean | undefinedfalseThe user cannot choose the tab. The tab can still get the focus, so the arrow keys reach it. A click listener on it does not run.
idstring | undefinedThe panel names the tab by this id in aria-labelledby.
valueValueRequiredThe value that the root gets when the user chooses this tab.
askeyof HTMLElementTagNameMap | Component | GenericComponent | undefinedA tag or a component that the part renders in place of its own element, with the same attributes and content. The element slot wins over it.

Slots

SlotSlot propsDescription
default
state: TabsTabState
The content of the part.
element
props: Record<string, unknown>
elementRef: (target: unknown) => void
state: TabsTabState
Renders your element in place of the element of the part. Bind props with v-bind and elementRef with :ref.

Exposed

MemberTypeDescription
elementHTMLElement | nullThe element of the part, or null while it is not mounted.

Selectors

SelectorDescription
[aria-selected="true"]The tab is active.
[aria-disabled="true"]The tab is disabled.
[data-orientation]The orientation of the tabs: horizontal or vertical.
[data-activation-direction]The side of the new active tab from the old one: left, right, up, down or none.

Tabs.Indicator ​

A visual indicator that can be styled to match the position of the currently active tab. Renders a <span> element.

Props

PropTypeDefaultDescription
renderBeforeHydrationboolean | undefinedfalseThe server HTML has a script that places the indicator before the app starts. Use it when the page shows the server HTML for some time. The script has the nonce of the nearest CSPProvider.
askeyof HTMLElementTagNameMap | Component | GenericComponent | undefinedA tag or a component that the part renders in place of its own element, with the same attributes and content. The element slot wins over it.

Slots

SlotSlot propsDescription
default
state: TabsIndicatorState
The content of the part.
element
props: Record<string, unknown>
elementRef: (target: unknown) => void
state: TabsIndicatorState
Renders your element in place of the element of the part. Bind props with v-bind and elementRef with :ref.

Exposed

MemberTypeDescription
elementHTMLElement | nullThe element of the part, or null while it is not mounted.

Selectors

SelectorDescription
[data-orientation]The orientation of the tabs: horizontal or vertical.
[data-activation-direction]The side of the new active tab from the old one: left, right, up, down or none.

CSS variables

VariableDescription
--active-tab-leftThe distance from the left edge of the list to the active tab, in pixels.
--active-tab-rightThe distance from the right edge of the list to the active tab, in pixels.
--active-tab-topThe distance from the top edge of the list to the active tab, in pixels.
--active-tab-bottomThe distance from the bottom edge of the list to the active tab, in pixels.
--active-tab-widthThe width of the active tab, in pixels.
--active-tab-heightThe height of the active tab, in pixels.

Tabs.Panel ​

A panel displayed when the corresponding tab is active. Renders a <div> element with the role tabpanel.

Props

PropTypeDefaultDescription
idstring | undefinedThe tab names the panel by this id in aria-controls.
keepMountedboolean | undefinedfalseA closed panel stays in the DOM, with hidden and inert, so its content keeps its state, and the server HTML has it. <Transition> does not animate such a panel: animate it with CSS on [hidden].
valueValueRequiredThe value of the tab that opens the panel.
askeyof HTMLElementTagNameMap | Component | GenericComponent | undefinedA tag or a component that the part renders in place of its own element, with the same attributes and content. The element slot wins over it.

Slots

SlotSlot propsDescription
default
state: TabsPanelState
The content of the part.
element
props: Record<string, unknown>
elementRef: (target: unknown) => void
state: TabsPanelState
Renders your element in place of the element of the part. Bind props with v-bind and elementRef with :ref.

Exposed

MemberTypeDescription
elementHTMLElement | nullThe element of the part, or null while it is not mounted.

Selectors

SelectorDescription
[hidden]The panel is closed, and keepMounted keeps it in the DOM.
[data-orientation]The orientation of the tabs: horizontal or vertical.
[data-activation-direction]The side of the new active tab from the old one: left, right, up, down or none.

Differences from Base UI ​

Vase UI ports Tabs from Base UI 1.9.0.

API ​

Base UIVase UI
Tabs.Root prop defaultValueThe prop has no default 0. With no value, the first tab that is not disabled is active, as the first option of a native <select>, also in the server HTML.
Tabs.TabThe tab reads the element that it renders, so it has no nativeButton. CSS selects [aria-selected="true"] and [aria-disabled="true"], so the tab has no data-active and no data-disabled.
Tabs.Panel<Transition> around the panel animates it, so the state has no transitionStatus, and the panel has no data-starting-style and no data-ending-style. CSS selects a closed panel that stays in the DOM with [hidden], so the panel has no data-hidden. The index of your v-for gives the index, and CSS has :nth-child(), so the panel has no data-index.

Behavior ​

Vase UIEvidence
A tab names the id of its panel in aria-controls, also when the panel has an id of its own. Base UI registers the generated id of the panel, so aria-controls names no element when the consumer gives the panel an id.
Slider.Root, OTPField.Root and Combobox.Chips give the list of their own parts only to those parts, and Tabs.Root and Accordion.Root give no list. An item of a composite around such a part, such as a Toolbar.Button, thus stays in that composite, as a child of the part and in a part of the list, such as a panel of Tabs. The parts after it keep their index. The label and the track of a slider use the inputs of the registered thumbs. So a slot can move a thumb input outside the track, and an unrelated range in the track does not take its place. Base UI gives the list to the whole tree of the part, so such an item joins that list. The arrow keys of the composite around the part then skip the item. Each later panel of Tabs and each later item of Accordion gets a data-index that is too high. A range slider gives its first thumb the value of the second thumb. An OTP input shows the character of the next slot. Backspace on a chip removes the value of another chip.
A tab activates at the click of a pointer press and at Enter and Space. With activateOnFocus, it also activates at a key of the list that moves the focus: an arrow key, Home or End. A focus that a pointer press or a script gives activates no tab. A press that leaves the tab before the release gives the tab no click, and a press of the secondary button gives no click, so neither activates a tab. With activateOnFocus, Base UI activates a tab at its focus event, except during a press of the secondary button. So in Base UI, a press of the primary button activates the tab before the release.
With no modelValue and no defaultValue, the first tab that is not disabled is active, as the first option of a native <select> that is not disabled is selected. The server HTML has that tab and its panel. Base UI has the implicit default value 0: with tabs of the values 1, 0 and 2, the tab of the value 0 is active.
The tab stop is on the active tab, also when that tab is disabled. With no active tab, it is on the first tab. A disabled tab takes the focus and has aria-disabled="true", so Tab enters the list at the tab whose panel shows, as the WAI-ARIA Authoring Practices describe. Base UI gives a disabled tab that a script selected no tab stop. It moves the tab stop of a removed active tab to the next tab.

The handbook gives the differences that all components share: Styling, Animation, Composition, Customization, Forms and TypeScript.