UNPKG

@onesy/ui-react

Version:
22 lines (21 loc) 715 B
import React from 'react'; import { ISurface } from '../Surface/Surface'; import { IElement, IPropsAny } from '../types'; export 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'; activateOnFocus?: boolean; onBlur?: (event: React.FocusEvent<any>) => any; onFocus?: (event: React.FocusEvent<any>) => any; LineProps?: IPropsAny; }; declare const Tab: React.FC<ITab>; export default Tab;