// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; /** * @file TabListContext.ts * @input React createContext, use * @output Exports TabListContext, useTabListContext, TabListPattern * @position Context provider; consumed by Tab.tsx, TabMenu.tsx * * SYNC: When modified, update /packages/core/src/TabList/TabList.doc.mjs */ import { createContext, use } from 'react'; /** * Size variants for tab list items. * Uses hardcoded px values (sizeVars not available on this branch). */ export type TabListSize = 'sm' | 'md' | 'lg'; /** * Layout mode for tab sizing. * - `'hug'`: each tab hugs its content width. * - `'fill'`: tabs stretch equally to fill the container width. */ export type TabListLayout = 'hug' | 'fill'; /** * ARIA pattern the strip resolved to. * - `'nav'`: a `