You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
520 B
TypeScript

import { ListState, ListAction, ListActionContext } from '../useList';
import { ActionWithContext } from '../utils/useControllableReducer.types';
import { ValueChangeAction } from './useTabsList.types';
export type TabsListActionContext = ListActionContext<string | number> & {
selectionFollowsFocus: boolean;
};
export declare function tabsListReducer(state: ListState<string | number>, action: ActionWithContext<ListAction<string | number> | ValueChangeAction, TabsListActionContext>): ListState<string | number>;