UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

14 lines (13 loc) 635 B
import { TabsProps } from "./Tabs.types"; export declare function useTabs({ onChange, value, defaultValue, id, }: Pick<TabsProps, "onChange" | "value" | "defaultValue" | "id">): { id: string; selectedValue: string; setSelectedValue: (next: import("react").SetStateAction<string>) => void; focusedValue: string; setFocusedValue: import("react").Dispatch<import("react").SetStateAction<string>>; makeTabId: typeof makeTabId; makeTabPanelId: typeof makeTabPanelId; }; declare function makeTabId(id: string, value: string): string; declare function makeTabPanelId(id: string, value: string): string; export {};