@geist-ui/react
Version:
Modern and minimalist React UI library.
18 lines (17 loc) • 544 B
TypeScript
import React from 'react';
export declare type TabsInternalCellProps = {
value: string | undefined;
onClick: (value: string) => void;
};
export declare type TabsInternalCell = React.FC<TabsInternalCellProps>;
export interface TabsHeaderItem {
value: string;
cell: TabsInternalCell;
}
export interface TabsConfig {
register?: (item: TabsHeaderItem) => void;
currentValue?: string;
inGroup: boolean;
}
export declare const TabsContext: React.Context<TabsConfig>;
export declare const useTabsContext: () => TabsConfig;