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 the tab whose radio is pre-checked (server-rendered state), then to the first enabled tab. Tab values come from each radio's value (or data-hl-value), else the index.

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

    Called with the new tab value after every selection change.

  • Optionalorientation?: "horizontal" | "vertical"