@coveo/headless-react
    Preparing search index...

    Interface TabSetActionCreators

    The tab set action creators.

    interface TabSetActionCreators {
        registerTab(
            payload: RegisterTabActionCreatorPayload,
        ): { payload: RegisterTabActionCreatorPayload; type: string };
        updateActiveTab(id: string): { payload: string; type: string };
    }
    Index

    Methods

    • Updates the active tab, deselecting other tabs.

      Parameters

      • id: string

        The unique identifier of the target tab (e.g., "abc").

      Returns { payload: string; type: string }

      A dispatchable action.