import type { DSTabElement } from '@digdir/designsystemet-web'; import '@digdir/designsystemet-web'; import type { HTMLAttributes } from 'react'; import type { DefaultProps } from '../../types'; import type { MergeRight } from '../../utilities'; export type TabsProps = MergeRight, 'onChange' | 'value'>, { /** * Controlled state for `Tabs` component * @default undefined */ value?: string; /** * Default selected tab value * @default undefined */ defaultValue?: string; /** * Callback with selected `TabItem` `value` * @default undefined */ onChange?: (value: string) => void; }>; export type ContextProps = { isControlled?: boolean; currentValue?: string; onChange?: (value: string) => void; getPrefixedValue?: (value?: string) => string | undefined; }; export declare const Context: import("react").Context; /** * Display a group of tabs that can be toggled between. * * @example * console.log(value)}> * * Tab 1 * Tab 2 * Tab 3 * * content 1 * content 2 * content 3 * */ export declare const Tabs: import("react").ForwardRefExoticComponent, "value" | "onChange">, "defaultValue" | "value" | "onChange"> & { /** * Controlled state for `Tabs` component * @default undefined */ value?: string; /** * Default selected tab value * @default undefined */ defaultValue?: string; /** * Callback with selected `TabItem` `value` * @default undefined */ onChange?: (value: string) => void; } & import("react").RefAttributes>; //# sourceMappingURL=tabs.d.ts.map