UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

10 lines (9 loc) 437 B
import { TabHookResult, TabProps } from "./types.js"; //#region src/experimental/Tabs/useTab.d.ts /** * A custom hook that provides the props needed for a tab component. * The props returned should be spread onto the component (typically a button) with the `role=tab`, under a `tablist`. */ declare function useTab<T extends HTMLElement>(props: Pick<TabProps, 'disabled' | 'value'>): TabHookResult<T>; //#endregion export { useTab };