UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

14 lines (13 loc) 831 B
import { TabListProps, TabPanelProps, TabProps, TabsProps } from "./types.js"; import React from "react"; //#region src/experimental/Tabs/Tabs.d.ts /** * The Tabs component provides the base structure for a tabbed interface, without providing any formal requirement on DOM structure or styling. * It manages the state of the selected tab, handles tab ordering/selection and provides context to its child components to ensure an accessible experience. * * This is intended to be used in conjunction with the `useTab`, `useTabList`, and `useTabPanel` hooks to build a fully accessible tabs component. * The `Tab`, `TabList`, and `TabPanel` components are provided for convenience to showcase the API & implementation. */ declare function Tabs(props: TabsProps): React.JSX.Element; //#endregion export { Tabs, type TabsProps };