UNPKG

@mui/base

Version:

A library of headless ('unstyled') React UI components and low-level hooks.

8 lines (7 loc) 520 B
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 default function tabsListReducer(state: ListState<string | number>, action: ActionWithContext<ListAction<string | number> | ValueChangeAction, TabsListActionContext>): ListState<string | number>;