@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
29 lines • 1.07 kB
TypeScript
import * as React from 'react';
import { BaseUIComponentProps } from "../../utils/types.js";
import type { TabsRoot } from "../root/TabsRoot.js";
/**
* Groups the individual tab buttons.
* Renders a `<div>` element.
*
* Documentation: [Base UI Tabs](https://base-ui.com/react/components/tabs)
*/
export declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
export interface TabsListState extends TabsRoot.State {}
export interface TabsListProps extends BaseUIComponentProps<'div', TabsList.State> {
/**
* Whether to automatically change the active tab on arrow key focus.
* Otherwise, tabs will be activated using <kbd>Enter</kbd> or <kbd>Space</kbd> key press.
* @default false
*/
activateOnFocus?: boolean;
/**
* Whether to loop keyboard focus back to the first item
* when the end of the list is reached while using the arrow keys.
* @default true
*/
loopFocus?: boolean;
}
export declare namespace TabsList {
type State = TabsListState;
type Props = TabsListProps;
}