@i-novus/ui-core
Version:
Базовые UI компоненты
19 lines (18 loc) • 822 B
TypeScript
import { HTMLAttributes, HTMLProps } from 'react';
import { ComponentBaseProps, CompoundComponent } from '../core';
export interface TabsProps extends ComponentBaseProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
activeTabPaneId: string;
direction?: 'row' | 'column';
onChange?(activeTabPaneId: string): void;
variant?: 'primary' | 'secondary';
}
export interface TabPaneProps extends ComponentBaseProps, Omit<HTMLProps<HTMLButtonElement>, 'onChange' | 'type'> {
id: string;
isActive?: boolean;
onChange?(activeTabPaneId: string): void;
}
declare const TabPane: import("react").ForwardRefExoticComponent<Omit<TabPaneProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
export declare const Tabs: CompoundComponent<TabsProps, {
TabPane: typeof TabPane;
}>;
export {};