EnhanceTabsOptions: {
    activation?: "manual" | "automatic";
    defaultValue?: string;
    onValueChange?: (value: string) => void;
    orientation?: "horizontal" | "vertical";
}

Options for enhanceTabs.

Type declaration

  • Optionalactivation?: "manual" | "automatic"

    manual (default): arrows move focus, Enter/Space activates. automatic: arrows activate the focused tab immediately.

  • OptionaldefaultValue?: string

    Value of the initially selected tab. Falls back to a tab pre-marked with aria-selected="true" (e.g. server-rendered state), then to the first enabled tab. Tab values come from data-hl-value, defaulting to the index.

  • OptionalonValueChange?: (value: string) => void

    Called with the new tab value after every selection change.

  • Optionalorientation?: "horizontal" | "vertical"