@abgov/react-components
Version:
Government of Alberta - UI components for React
24 lines (23 loc) • 741 B
TypeScript
import { default as React, JSX } from 'react';
import { GoabTabsOnChangeDetail } from '@abgov/ui-components-common';
interface WCProps {
initialtab?: number;
ref: React.RefObject<HTMLElement | null>;
onChange?: (tab: number) => void;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-tabs": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabTabsProps {
initialTab?: number;
children?: React.ReactNode;
testId?: string;
onChange?: (detail: GoabTabsOnChangeDetail) => void;
}
export declare function GoabTabs({ initialTab, children, testId, onChange, }: GoabTabsProps): JSX.Element;
export default GoabTabs;