@up-group-ui/react-controls
Version:
Up shared react controls
35 lines (34 loc) • 848 B
TypeScript
/// <reference types="react" />
export declare type LoadType = 'onShow' | 'onLoad';
export interface Tab {
head: string | JSX.Element;
content: JSX.Element;
}
export interface UpNavTabProps {
tabs: Tab[];
loadType?: LoadType;
onSelectedTabChanged?: (selectTabKey: number, tab: Tab) => void;
selectedTabOnLoad?: number;
}
export interface TabContentProps {
tab: Tab;
tabKey: number;
selectedTabKey: number;
loadType: LoadType;
}
export interface TabContentsProps {
contents: Tab[];
selectedTabKey: number;
loadType: LoadType;
}
export interface TabHeadsProps {
heads: Tab[];
selectedTabKey: number;
selectTabKey: (tabkey: number) => void;
}
export interface TabHeadItemProps {
tab: Tab;
tabKey: number;
selectedTabKey: number;
selectTabKey: (tabkey: number) => void;
}