UNPKG

@geezee/react-ui

Version:

Modern and minimalist React UI library.

19 lines (18 loc) 517 B
import React from 'react'; export interface TabsItemConfig { value: string; label: string | React.ReactNode; disabled: boolean; } export interface Handles { setCurrentTab(v: string): void; getCurrentTab(): string | undefined; } export interface TabsConfig { register: (item: TabsItemConfig | { remove: string; }) => void; currentValue?: string; } export declare const TabsContext: React.Context<TabsConfig | null>; export declare const useTabsContext: () => TabsConfig | null;