UNPKG

@onesy/ui-react

Version:
25 lines (24 loc) 818 B
import React from 'react'; import { ISurface } from '../Surface/Surface'; import { ITooltip } from '../Tooltip/Tooltip'; import { IElement, IPropsAny } from '../types'; export declare type ITab = Omit<ISurface, 'version' | 'onChange'> & { version?: 'primary' | 'secondary'; size?: 'small' | 'regular' | 'large'; value?: any; onChange?: (value: any, index: number) => any; active?: boolean; index?: number; name?: IElement; label?: IElement; icon?: IElement; iconPosition?: 'start' | 'top' | 'bottom' | 'end'; tooltip?: any; activateOnFocus?: boolean; onBlur?: (event: React.FocusEvent<any>) => any; onFocus?: (event: React.FocusEvent<any>) => any; LineProps?: IPropsAny; TooltipProps?: ITooltip; }; declare const Tab: React.FC<ITab>; export default Tab;